« first day (2698 days earlier)      last day (2476 days later) » 

00:04
@kelunik Not yet, there's still a related bug in ext/fiber to failure - going to fix that first.
Good morning
01:35
"fixed"
I'm sorry, what?
posted on March 05, 2018

New Cyanide and Happiness Comic

01:56
After "POST data can't be buffered", using php://input makes huge tmp files – #76058
 
1 hour later…
02:59
morning
03:50
o/
\o
 
1 hour later…
04:54
Hi
Is there any free tool to decrypt ioncube code written in php
good morning
05:12
good morning
You know you're in an international chat room when several times through the dead of night people say, "Good morning!"
05:42
Silicon valley is the best TV show ever made. Evidence:
3
06:04
How does everyone go about deploying a website whole hiding db passowords? I'm using Azure and to connect the db password is required as part of the php script. Wouldn't a person who accesses the website be able to navigate to the script and use developer tools to read the source?
@DMop The password is in server-side code which is only executed on the server. Users have access only to the results of the script execution, not the code itself.
@sorak thank you. That makes sense. Just to confirm, even if a user were to navigate to something like scripts/data.php they would only run the script but not be able to access the source?
That is correct. The server executes PHP scripts and returns the result. They will never have access to the source.
That makes sense. Thanks
07:04
mornng
\o
O/
07:19
There is an English word which sounds "exceleration" and means "making sth faster". Do you know what's that word?
'nin
morning Joe,Ekin.
@Shafizadeh acceleration
ah yes thx
07:27
when i read any blog or white papers(like technical) there are always words which i am not able to understand so it takes time to understand whole things.
is "white paper" a specific term? google translates it to "a paper which is blank".
how do ideas come to us before we are awake, so much of the time, hard problems are solved in my sleep ...
I read somewhere people who haven't a calm sleep, they don't have a good awakeness too. So you should change your life style and keep your sleep just for resting :-)
@JoeWatkins So, damn true.
08:00
ergophobia an abnormal fear of work; an aversion to work.
!!dad
Why don't skeletons ever go trick or treating? Because they have no body to go with
@Jeeves stupid bot
08:21
moin
mornin
!!dad
08:32
Why can't you hear a pterodactyl go to the bathroom? Because the pee is silent
@DaveRandom how did you get on with your unpack lib?
I've been using Go struct tags a lot recently (basically annotations on structure properties that tell encoders how to handle the values)
@Leigh In a nutshell, I got bored and stopped working on it. What is there does work, I was just going to add a bunch of more complicated types and some kind of stringly typed DSL
@Leigh ooooh interesting
that might actually be worth pursuing
Whole bunch of Go encoders support them, json, xml, asn1
although I foresee files that are 50% docblock
Docblock for the sake of it, I can't stand. If it's an annotation that's the crux of some functionality, I don't care so much
08:42
what is there right now just uses arrays, one of the reasons I stopped is because I couldn't come up with a satisfactory (both simple and flexible enough) way to use objects
in particular, need a way to describe how you access a property
And here I was thinking it should be entirely objects :D
Yes it should be
the array-based approach was just a stop-gap/PoC
well
maybe not entirely array based
there are probably times when schemaless stuff makes sense
like decoding ASN.1 things
I have the week to do some self-education, studying for a security cert, doing some PE file modifications, getting a little frustrated trying to use higher level languages, and asking myself if I should revert to C or just do it with PHP because it would be easier for me
sometimes you just have a big map of OIDs and you can't interpret it until after you decoded it
@Leigh honestly I probably would just use C for that, I feel like what you want to do is hack out some ugly-ass code fast
it doesn't need to be leak-perfect etc, if it's just a self-educational tool for how to modify those kind of structures
Yea I'm just making a binder, add a section for an artificial code cave at the end of the file, trampoline there
Then the next step is a custom packer to avoid AV
but you're right, it's just chopping up the file and modifying some offsets, injecting some shellcode
08:48
Not for the first time, I wonder why there is not a standardised XML schema (with a 1:1 DER mapping) for representing those data structures in a human-readable way
The format isn't that bad, DOS header ending with an offset to the NT header, gap between is a DOS executable stub, then the headers are contiguous until you hit code and data sections
oh PE, I read PEM
:p
I'm not familiar with that particular format, but what I said above really stands for any binary structure. C is good for comprehension of that stuff because it's pretty much a direct mapping
As long as I'm on a little endian CPU the headers certainly are a 1:1 mapping :)
09:06
Wrong argument for function – #76059
09:18
Morning 11
@Sean o/
Is making a function named "list" invalid?
San
San
list() is a PHP function php.net/manual/en/function.list.php
Ah, got it
Anonymous
09:23
mornin
Oh boy @pmmaga that's a pretty tasty bit of popcorn
Mornin Jay
Good weekend btw?
@Shafizadeh name it listAll() or just all()
Anonymous
@Sean o/ Meh, snowed in for half of it but a chilled one :) Yourself?
@Gordon "all" is also a defined function in Laravel :-(
@DMop any files that contains secrets shouldn't be under the public directory. They should be in a directory that is completely inaccessible via the web.
09:25
but listAll() is ok
Wes
Wes
buondì
@Shafizadeh or since it's a ticket controller, name it listAllTickets()
@Gordon How did you know what controller it is?
just a guess because of "list" ?
@Wes it says so on the screenshot
Anonymous
Your screenshot mate..
09:26
oh ok .. got it :-)
@Shafizadeh is that laravel?
San
San
@shaf
@Shafizadeh so many magics are going on here! :-P
@JayIsTooCommon Did what any sane couple would do in the face of freezing cold weather
Went out and had photoshoots of her in cosplay on both days
@Gordon Or just listTickets() /cc @Shafizadeh
Anonymous
09:35
@Sean :B Sounds fun
@San not sure what you mean by "magic"
@kelunik why your naming is vice versa. I guess ticketsList() makes more sense.
@Shafizadeh because methods are usually verbs and class names are usually nouns
San
San
@Shafizadeh by guessing the things like "controller", "laravel" people surprised you. That's why I said "magic" :-)
09:51
DOMDocument::load(): abc length too long in ..... Cake php
While load an xml file
DOMDocument::load() [domdocument.load]: Memory allocation failed in
Same error on same file same line
Can any one please tell me what is the issue ?
Wes
Wes
10:07
why it's so cold
@San :-)
@Gordon I see, good to know
anyone experienced this problem: vbforums.com/…
?
@Gordon they just start with a verb
10:23
@tereško yeah
In the programming world, there isn't any specific standard for such things. i.e naming, syntax (should the condition has two spaces around in the if-statement?!), a specific structure for comments in the coed etc ..
San
San
@Shafizadeh There are specific coding standards like PSR-2.php-fig.org/psr/psr-2
!!xkcd standards
@San ah, good. I guess teresko already provided this link for me but I forgot
San
San
10:30
@Shafizadeh whatever the PHP framework you are using there should be coding standards. you can configure those in your IDE like Sublime, PHPStorm etc. Coding standards will help your team's code looks similar
San
San
@Shafizadeh if you go through the Laravel core source code, you can see all the codes are similar but many developers are involved in the development. You can use phpsc - pear.php.net/package/PHP_CodeSniffer to validate your code.
@Shafizadeh Laravel follows the PSR-2 coding standard and the PSR-4 autoloading standard.
ah .. so there are some standards for such things. I just knew about replacing 4 spaces with a tab.
I will take a look at this standards anyway
10:40
The opposite, right? :P PSR-2 is 4 spaces for indentation.
San
San
@Shafizadeh Which IDE you are using for code development?
phpstorm at work, sublime at home
which one is correct?
- Which IDE you are using for code development?
- Which IDE do you use for code development?
The latter
thx :-)
10:42
@San ah ok thx
How to read svg file in xml format
San
San
You can go through the above link to know how to configure phpcs in PHPStorm. it will show you the error/warning etc. in the IED itself
San
San
SublimeLinter-phpcs can be used for Sublime
10:54
good evening
11:13
@ShwetaKhattar you open it with a text editor and just read it. it's plain text.
I don't like failures within cycle collector...
@NikiC under which circumstances is it possible, that, in cycle collector, an array contained within a property of an object is destroyed, but not the object itself? The code I'm debugging has a dangling pointer in the property...
The object is not in the root buffer, the array is though.
that remind me: i need to re-enable liner in my atom setup
(newest master, including the fix for #76050 btw.)
@bwoebi Are you debugging the byte-stream segfault with fibers?
@kelunik well, the assertion failure, yes.
fibers do not have get_gc so they should possibly leak the object, but definitely not leave a dangling pointer
11:29
@bwoebi I mean github.com/fiberphp/fiber-ext/pull/30#issuecomment-370718732, which is a memory access issue, no assertion failure?
@kelunik that one I have fixed locally
That one is an issue within fibers rather than php-src, right?
...............E......                 49 / 49 (100%)

Time: 4.47 seconds, Memory: 10.00MB

There was 1 error:

1) Amp\ByteStream\Test\ZlibOutputStreamTest::testWrite
Error: Loop exceptionally stopped without resolving the promise

/Users/Bob/byte-stream/vendor/amphp/amp/lib/functions.php:160
/Users/Bob/byte-stream/test/ZlibOutputStreamTest.php:39

Caused by
PHPUnit\Framework\Error\Warning: uv_poll_init_socket(): invalid resource passed, this plain files are not supported

/Users/Bob/byte-stream/vendor/amphp/amp/lib/Loop/UvDriver.php:194
that's my current state
@kelunik yes
I'm using an API for sending SMS via PHP. There is an example, this line is in the top of that example:
ini_set("soap.wsdl_cache_enabled", "0");
So that one was just hidden before the fix to master? Because it worked before. ^^
11:31
I never seen such thing before, does anybody know what does that line?
@kelunik possibly, have to compare versions
!!docs soap.wsdl_cache_enabled
[ maxdb_rpl_parse_enabled() ] Check if RPL parse is enabled
^ @PeeHaa Fix it, it should be possible to search for ini options.
@Shafizadeh never seen it before, but based on names, it disables WSDL caching for SOAP
@kelunik I failed to create the issue :-(. You might want to create an issue about that
6
@tereško ah, so it means the whole mechanism is SOAP, not REST, right?
"0" often is used to mean false in configuration
yes I know
@Shafizadeh yes
11:32
ah ok thx
@bwoebi Ah, I think I had that one before, too. Might have been the one I was mostly able to avoid via github.com/amphp/byte-stream/commit/…
!!issue Allow searching ini options (!!docs) - chat.stackoverflow.com/transcript/message/41507071#41507071
@Ekin I failed to create the issue :-(. You might want to create an issue about that
@kelunik yeah, it's related to Dmitrys GC changes
@bwoebi I think the issue might be github.com/fiberphp/fiber-ext/pull/30/…
11:36
@kelunik nah, totally unrelated that
Wes
Wes
\o
San
San
@Shafizadeh since you are using Laravel this book will be useful for you : adamwathan.me/refactoring-to-collections
i need to clean my room but whats the point we all die anyway
9
Anonymous
pfft you sound like one of those mortals.
@San lol, no, please do not advertise that piece of a stinking shit here
@mega6382 yes, but if you get killed by the mess in your room, it will be somewhat embarrassing
11:44
!!lxr GC_G
[ /Zend/zend_gc.c#216 ] #define GC_G(v) ZEND_TSRMG(gc_globals_id, zend_gc_globals *, v)
@tereško lol, but I guess I'll be able to live(die) with that embarrassment. :)
@JayIsTooCommon Yes, I am Master Roshi
San
San
@tereško advertise? why you felt that? I have that book and I felt it will give us some new thoughts
@kelunik show me a way that you can do that through the php.net search box and I can make Jeeves do it.
Anonymous
@DaveRandom @PeeHaa Jives seems to throwing on issue creation
11:49
the problem is that the manual itself (afaict) does not support that
@DaveRandom I failed to create the issue :-(. You might want to create an issue about that
ugh
I had nothing to do with that plugin, I don't know how it works
Anonymous
'twas me
fixitfixitfixitfixitfixitfixitfixitfixitfixitfixitfixit
Anonymous
which means it's perfect and there's something wrong with github
11:50
there may actually be something wrong with github
@Shafizadeh You can also pass an option to the SoapClient and SoapServer that does the same thing.
@NikiC can't cast internal objects because need to realloc properties_table ... could any justification be found to have the sizeof custom objects in object handlers struct with offset ?
Anonymous
what horrible code I used to write..
11:57
!!lxr gc_root_buffer
[ /Zend/zend_gc.c#186 ] } gc_root_buffer;
Wes
Wes
@Ekin how's been your journey in php-src so far? :B i am so scared by it
I mostly just try to understand what's going on. you at least try to make use of it and actually write stuff :P scary or not, that's how you actually learn me thinks
@jjok I see
12:02
@DaveRandom I failed to create the issue :-(. You might want to create an issue about that. (HTTP Status: 404)
interesting, 404 @JayIsTooCommon
maybe they have deprecated that endpoint
oh @DaveRandom, I wanted to ask you if you knew anything about 4g networks ?
some things, yes, depends what you want to know
antennas
guys, how should I pronounce "php.ini"?
- php dot I.N.I (each character separately)
- php dot ini (like the beginning of initial)
12:03
if I tell you the name of the router, can you tell me what antenna is best suited ?
oh I was idly wondering about that when I saw you mentioning it
I'm told it can make a big difference
I know that there is such a thing as a directional GSM antenna, don't know whether that works for HSDPA etc
@Shafizadeh the latter
12:04
@Shafizadeh PHP inny
there's lots on the market, but with all different specs, frequencies/bands whatever, and I don't know which is suitable for here
@jjok thx
@Shafizadeh either is fine, though I prefer the former
huawei B315 is the name of the router, and I can have two antennas ... if you could find anything out when you have a minute, that'd be really good ...
@PaulCrovella ah, ok thx :-)
12:06
Yeah, I have always pronounced it I.N.I
from now on (until the next week) I will ask lots of technical-pronunciation for my next speech.
I found one here but it specifically says it works with the uk network, and I just dunno what I'm looking at ...
the network here is telefonica (o2, movistar)
Wes
Wes
@Shafizadeh how are we supposed to tell you. just google "word pronunciation"
getDocComment() can return false – #76060
@JoeWatkins if it works in the UK it will work in EU
Wes
Wes
this has sample sounds
I will look into it
@Wes I use it for simple words, but I prefer to double-check technical words with technical guys in here
Wes
Wes
ask us if we prefer that? lol
12:12
:-)
@JoeWatkins is there a reasonable way that you got get line-of-sight to a tower?
depends where it is, I'm surrounded by mountains and tall trees, but there might be one on the mountain possibly ?
how can I find out where they are ?
I would hope there is some kind of public record but that's probably optimistic
in general they are pretty obvious, I suppose it's logical that if you have crappy signal right now then you probably don't have direct line of sight
Can you please rephrase this: "you got get ..."
its not bad, much better than phone (6mbps), I've seen 25mbps
a mile down the road, 40mbps on my phone
12:20
@Gordon - I trying to open it in geany but can't open. Also getting issue of memory allocation while load file in code
@JoeWatkins cellmapper.net/…
data seems to be correct certainly near my house
basically if you can get line of sight to a tower (even if it means putting up a giant mast), you can get a directional antenna which will be the best possible option. If you can't get line of sight, you want a high-gain omni. I can't tell you which one to get though, because I've never actually bought one.
Does anybody know what's the different between sending an sms and sending a point to point sms ?
so the nearest ones are in gandia center, I'm near urbanicacio monterreal ...
@JoeWatkins OK, and you are where in relation to that?
12:27
(next urbanisation over, somewhere under those big labels ...)
ok I got it
@JoeWatkins which direction sorry? :-P
ahh OK I see it
so can you see into the center of town from where you are?
can't tell how high that ridge is from google maps
not from the ground, but maybe from the roof ...
the drive into gandia is downwards and then flat
12:37
@JoeWatkins is it sane/safe for you to get on to the roof?
probably not
since it's you saying that, it means it's definitely not
@Shafizadeh depends in which language. In english I pronounce it as "I.N.I", but in latvian I say "ini"
Wes
Wes
how's that regex thing called. i have a pattern x, then i want to match anything afterwards unless it matches x, without repeating the x pattern
/(foo)(.* but foo)/
backreference
12:41
@DaveRandom yeah that sounds right, it's definitely not ...
Wes
Wes
thanks
@San "new thoughts" do not make them better. What you got were someone teaching you bad practices.
@Wes or subroutine... depends on whether you want to refer to the pattern or the result of the match
@tereško ah, so apparently both are valid and I'm not sure finally which one will be used by me when I'm presenting
Wes
Wes
backreference it seems
12:44
@JoeWatkins in a nutshell, the higher up you can put it, the better. If you can get high enough to have a direct line of sight it will likely make a huge difference. I have often seen this done (for WIMAX and friends) with basically giant scaffolding poles, you can build those things up to a good few meters without any real problems/major support structures at the base, although if you were going to do that I would advise at least talking to someone who does that professionally.
well, it's a shortened form of "initialization", because in old days the MSDOS could only have 8 symbols in file name and 3 in extension
@Ekin another version of that heeris.id.au/2013/…
even more accurate I guess
13:20
Phar wrapper and extensionless files – #76061
!!chuck
When Chuck Norris was born, he immediately had sex with the first nurse he saw. He was her first. She was his third. That afternoon.
eewwww
Wes
Wes
that was too much even for chuck norris
@DaveRandom ok ... I managed to raise the satellite dish 3m from the ground, you can buy attaching poles in the local b&q type place ... so I want to get as high as I can on the side of the house, and raise that up 6m or whatever, then point in the direction of gandia ?
13:26
@JoeWatkins If you can get line-of-sight to the tower then it's worth looking at a directional antenna. If you can't then there's no point (in fact it will probably make things worse)
But I can't really see how you could confirm that without a cherry picker or sth
I don't even know what that is ... there are people that pick oranges near by, could they help ?
anyway, some quite useful darkness for you to stare into ...
use function Componere\cast;

class Base {
	public $std;
}

class Child extends Base {
	public $two = [1,2];
}

class Bottom extends Child {
	public $three = [1,2,3];
}

$base = new Base;
$base->std = new stdClass;

var_dump($cast = cast(Child::class, $base));
var_dump($cast = cast(Bottom::class, $cast));
var_dump($cast = cast(Child::class, $cast));
var_dump($cast = cast(Base::class, $cast));
object(Child)#3 (2) {
  ["two"]=>
  array(2) {
    [0]=>
    int(1)
    [1]=>
    int(2)
  }
  ["std"]=>
  object(stdClass)#2 (0) {
  }
}
object(Bottom)#4 (3) {
  ["three"]=>
  array(3) {
    [0]=>
    int(1)
    [1]=>
    int(2)
    [2]=>
    int(3)
  }
  ["two"]=>
  array(2) {
    [0]=>
    int(1)
    [1]=>
    int(2)
  }
  ["std"]=>
  object(stdClass)#2 (0) {
  }
}
object(Child)#3 (2) {
  ["two"]=>
  array(2) {
    [0]=>
    int(1)
    [1]=>
    int(2)
  }
  ["std"]=>
  object(stdClass)#2 (0) {
Anonymous
Why are you so gross
you're gross
Anonymous
rude
silence, poopy pants
13:37
professor poopy pants
2
get it right
g'ah just a single sweep aaand she borked my 2nd monitor. it just blinks now... and I have 4 windows open... :(
@JoeWatkins one of these
basically you need to actually get up to where you could put the transmitter to see if you can actually see it
it's probably best to just get an omni
and if that doesn't give you an acceptable connection, then look at the more extreme options
13:51
@DaveRandom you didn't spend 4 years learning to poop pants to be 'Mr poppy pants'?
................................................................................‌​.................................................................................‌​.................................................................................‌​.................................................................................‌​.............................................................................k
these are the things you are missing out on by not having children

« first day (2698 days earlier)      last day (2476 days later) »