« first day (1441 days earlier)      last day (3525 days later) » 

9:21 AM
@tereško how do I read/say this name: Endijs
 
I would say "Endeess"
 
"j" is spelled as 'y' in "yo"
and "i" as in "sit"
 
thnx
 
@tereško So it adds a kind of soft "e" sound (since "ys" doesn't really make a vowel sound in English)? Like "Endies"?
 
gonna hook up with latvian fella at phpnw, he works in another department
 
9:26 AM
@JoeWatkins "End -- ee - ji - zz"
 
yeah, ask hum to teach you how to spell "šaursliežu dzelzceļš"
=P
 
Just use nice British generic terms... "Chap", "Old bean", "Me ol' mucka".
 
@tereško do you work sometimes on fracture still?
 
or the awkward American variation: "Hey there.. pal"
 
@tereško lol
 
9:29 AM
@RonniSkansing yes , have been doing some work on the Http abstraction, since I use the components in my own projects
though the primary repo is abandoned
 
@tereško theres a small but funny typo I read yesterday.. Let me just find it
 
@Fabien Not sure about that last one... sounds like what the Peasants doth pronounce.
 
Peasants these days use "Blud", "boss", "fam" and such.
 
I hate that ...
 
I started using some of them satirically and now I sometimes do it without thinking :P
Like a task that is boring and takes ages is "long blud"
or if I don't want something I might say "allow it". 'l.ow'
 
9:36 AM
Disgusting.
 
lol. Fortunately I am articulate enough to get away with it fam.
 
Guys, I'm reading this answer and went on to try it at 3v4l am I the only one to find weird how that answer was accepted ? (or am I doing something wrong?) ps: question is not mine, i just felt like trying because I've never seen \pL. as a valid regex to look for words
 
lolz
 
@Fabien 'Me ol' muck' pwns.
 
@Fabien Yeh I have a similar problem with "safe"
 
9:46 AM
Some I like tbh. "Cham" as a word for eating.
You're always chamming.
Make some onigiri so we can cham it down.
 
@MoshMage what would you expect that code to do?
 
@Fabien I... no.
 
Say it!
 
@MoshMage \pL matches code points in the unicode "letter" category. Your 3v4l didn't match because you jammed a bunch of numbers in the string.
 
just no.
 
9:49 AM
I'll never say "Bro" though. I draw the line there.
 
if there's a line, blud is on the same side as bro
 
@PaulCrovella Oh. Right. When I read "alpha characters" my brain said "alpha numeric"
 
lol
 
Nah blud.
 
cringeworthy stuff ...
does lester vote ?
 
9:51 AM
I very much hope he doesn't have the karma
I've never seen him vote
Unless he has some crazy un
 
he's nearly always talking ?
noticed that ?
 
Yes? I have? I've also noticed that he always talks in questions? And seems to think that every project is firebird?
 
@Jimbo Thanks and morning
 
I dunno if I remember right ... I don't remember things so good ...
 
Jun 17 at 9:37, by DaveRandom
Also I swear that I am going to hunt Lester down and take the ? key off all of his keyboards.
 
9:53 AM
lol
 
haha
just take away his Shift keys.
 
Has anyone noticed that chat search seems to be kind of broken? I searched for "lester" when said by me and it found a quote of that message but not the original message
 
How are you doing/ ... damnit1
 
lol
Every smiley is now winking
 
nope, it's ;0
 
9:55 AM
@MoshMage the regex probably isn't entirely right though, as it'll miss letters with combining diacritics.
 
;9 = sad smiley
 
@DaveRandom not if you use PT QWERTY; :, ;, (, ) and such are all on the shift key ;D
 
morning
 
@PaulCrovella what was really bugging me was the \pL. as I've never ever seen it. Not even in the awesome SO FAQ on Regex
 
unicode categories are useful :D
 
10:03 AM
Excellent Smithers. — Max Murphy 11 hours ago
 
:D
 
@MoshMage that is very much incomplete.
 
Release the hounds
 
moin bob
 
@PaulCrovella For me seems like a bible (but then again, I'm a complete noob when it comes to regex :x [and not only])
 
10:06 AM
@MoshMage The regex bible is the Mastering Regular Expressions book from O'Reilly. And even it is incomplete.
@MoshMage if you want a bit more on matching combining diacritics and why you shouldn't trust \b around accents, see my answer here (ignore the "tags" stuff, it was never relevant to begin with). and there's lots more info at regular-expressions.info/unicode.html
 
^ for some unknown reason I hate that regular-expressions.info website. I think it's because of all the Orange (or the fact that the few times I used it I got more confused than when I arrived there :x)
 
@JoeWatkins Trying to figure out how to live without malloc() functions in a signal function…
 
what's the memory for ?
 
formatting strings (fprintf) but fprintf isn't asnyc-signal safe, so…
 
@PaulCrovella OOOOOH!!! \p{L} it's like saying "dude, use Latin characters as well". It now makes sense.
 
10:14 AM
I think I need to allocate something like one megabyte from stack (and then write my small manager… though I think an arena allocator is enough in that case…), that should be largely enough for printing a few information about actual Zend state…
 
sounds okay to me, this is a signal handler, in a debugger ... it's fine I think ...
 
@MoshMage not just latin
 
@JoeWatkins It bothers me that these things aren't async signal safe…
 
@PaulCrovella should've written {Latin} and I should've read the first paragraph; {L} seems to be every letter in every language. Damn. Never again shall I use [a-zA-Z]
 
emalloc might be ?
I mean it doesn't actually call malloc
it's malloc that's not signal safe, I don't see emalloc (spprintf) doing something unsafe, do you ?
 
10:18 AM
@JoeWatkins well, it does, but just when not enough memory is available…
@JoeWatkins but emalloc() isn't async safe too.
 
what does it use ?
 
when emalloc() catches a signal in the middle of execution, zend_mm_heap might be borked too, temporarily.
It's not emalloc() which does anything unsafe, but emalloc() by itself isn't async safe.
 
oh ofc
 
@tereško the breaker is out, some websites didn't include a certain notice. This one does. It's about why the chapters are quite short lately
 
@JoeWatkins just watchpoints can use emalloc() internally in the signal handler (as it is SIGSEGV/SIGBUS), as the signals happen in well-defined places in emalloc() & Co. which are all safe. It's just a problem when the signal might happen at random places…
But if you try to kill a running phpdbg script via sigsegv/sigbus it might fatally fail…
 
10:24 AM
@bwoebi Can't you just set a bp at the next user instr from the sig handler?
and maybe collect info about args to internal function (if you are in one) in some preallocated space?
or what else do you need?
 
@NikiC oh, yeah, that I want to, too. But the target is remote, so I need to analyze the incoming stream.
so… I need to MSG_PEEK, but I don't have SO_PEEK_OFF (which is too new).
So, only choice is to get a large enough buffer from stack memory…
the printing then comes (nearly) for free...
I've also thought about out-of-band data, but I have no idea how good that thing is supported and usable through languages. (for the remote I mean)
 
okay, I have no idea about that stuff ^^
 
@NikiC do you think I would? ^^ Most of yesterday evening I was collecting and reading spare resources about that...
 
j0h
I get an error with trigger_error and it halts the program. Is trigger_error just a fancy echo "You done broke it" function?
 
@j0h try it yourself, empty file, just a trigger_error call.
 
10:34 AM
@j0h trigger_error lets you specify the error type. By default it's a notice, which will not halt the program
Unless you also have an error handler that throws exceptions or something similar
 
Dammit. Went to a interview a couple of days ago, the guys said I was awesome and had good logical thinking but I needed a tad more JS knowledge. I don't think I'll get in that awesome company - though I know i'd level up my JS if they do contract me (plus I know I can keep up with the level of the JS, even not knowing as much as a near-guru)
 
j0h
Im Trying to get the PHPSerial source code to work.
 
I just spoke with my manager and he said they were still thinking on my situation :\
 
j0h
But the triger_error code ... Well, I mean, its not working either way. but trigger Error seems to really screw it up
 
Proper commenting:
        array(
            'Client'        => $this->client_id,
            'Token'         => $key,
            'CreatedAt'     => time(),
            'ExpiresAt'     => time() + (60 * 60), // one hour hence
            'AuthRequest'   => serialize($_POST),
        )
 
10:43 AM
I will never understand why people think that 60 * 60 is more readable than 3600
Same goes for 60 * 60 * 24 == 86400
 
^
 
Everyone knows what those numbers are, surely?
 
@DaveRandom You have a point.
 
#microOptimisation
Also @TRiG (I doubt this matters in practice) it's possible for that expiry to be +1hr 1sec
Never post code in this room if you don't want it dissected :-P
 
why are $_GET and such mutable?
 
10:47 AM
@DaveRandom That really doesn't matter in practice.
 
Yeh I know, there's basically nowhere that it would matter
 
@RonniSkansing My guess: it was easier to implement them that way in the first place.
 
@RonniSkansing The only real answer to that is "because they are"
There has to be some provision for superglobals being mutable because of $_SESSION
Also there's not really any such thing as an "immutable variable"
 
@DaveRandom 2592000 … You recognize that number immediately?
 
1 week
 
10:48 AM
no, 1 month.
(30 days)
 
No such thing
 
lol
 
But yeh, >1day is more abstract
It's really the 1hr/1day thing
 
morning
 
@DaveRandom You just know these numbers by heart (especially 86400) if you use them regularly…
 
10:50 AM
@RonniSkansing Although, now we have constant arrays, that could be fixed
 
@DaveRandom Company A built a website. Company B built a desktop EPOS system. The EPOS system communicates with the website over a very weird API designed by Company A to be generic and then tweaked to meet the needs of Company B. Now Company C (us) is taking over the website and have to reimplement the API.
Documentation comes in the form of Company A's documentation for their standard API plus some e-mail chains where they and Company B worked out the tweaks they'd make to it for this particular site.
 
@DaveRandom you mean Z_IMMUTABLE in phpng?
 
@DaveRandom that would be awesome... + remove global; at the same time. =]
 
@bwoebi Yeh, 3600 is basic mental arithmetic that anyone should be able to do straight off the bat (at least, any dev), and 86400 is easy to remember because 864
 
@DaveRandom uh, I had a time, where I always wrote 84600… ^^
 
10:52 AM
I suggest using 86420 instead, much more logic.
 
@bwoebi Or just deprecate the SGs and define __GET (or something) constants
 
@DaveRandom why deprecate the sapi_globals?
 
17
Q: Is it possible to declare an array as constant

mrNWe can define a constant like define("aconstant','avalue');. Can't we define array in this fashion like define("months",array("January", "February", ---); ?

^^ New answer needed?
 
@bwoebi Because input data should be immutable. We enforce other bits of code/design style (LSP) so why not that?
@TRiG Yeh maybe, how high was that on Google? Although also, kind of a "just try it"/rtfm question...
 
@DaveRandom people emulating magic_quotes nowadays won't be happy ^^
 
10:55 AM
(it's since 5.6, btw)
@bwoebi They don't deserve happiness.
 
@DaveRandom no, they just use the same codebase than 10 years ago…
 
I'm sorry, but there's no excuse for that. I've even seen 10 year old code samples on the internet check for magic quotes and unquote stuff before mysql_real_escape_string()ing them again
 
Anyone running a codebase that old and that crap hasn't updated PHP for a long time
 
@bwoebi So?
 
10:58 AM
We can't maintain BC with every stupid design decision made in PHP since the dawn of time forever
5
 
@NikiC nothing. I'm not against that change, I just want to note that they still deserve happiness.
 
@bwoebi No, they don't deserve happiness. They should update their damn code.
 
@NikiC cant we close as dup in single close vote anymore ?
 
And I am against making __GET a constant or any such thing
@NullPoiиteя was tagged with php-5.5 only :(
 
Yeh I'm not really for it, was just pointing out that it could be done
 
11:01 AM
@NikiC actually, I don't want it a constant, more like an immutable array.
 
^ yes =] (kill the wp)
 
@AndreaFaulds There will still be some shellshock holes in PHP where people are passing data through to exec...however those people probably have other problems as well.
 
Yeh, shellshock is the least of your worries there, chances are there are much less convoluted ways to inject code
 
wtf is "phpmaker"? is this even about programming?
 
@PaulCrovella
@NikiC add the php tag, cv it
 
I don't get to cv yet :(
 
hm
I was thinking I should try to get the golden php badge to have the dupe hammer
 
@FlorianMargaine doesn't work that way
 
11:21 AM
but... uh...
@NikiC oh? I thought it would
 
I got the "Unsung Hero" gold badge the other day. Only thought that came to mind was "cheap bastards"
 
@FlorianMargaine after edit it tag it requires 5 close vote like stackoverflow.com/questions/25983338/…
sorry for multiple ping
 
 
@SecondRikudo It's on!
 
my, look at those awards.. "BestVistaDownloads"
 
11:25 AM
@Fabien He's gonna tear Sasuke a new one.
 
@PaulCrovella rofl
 
@Leri Feels like it's PHPMyAdmin
 
@MoshMage Meh, PHPMyAdmin does not generate source code
 
@Leri What I'm saying is: the generated code feels like it's phpmyadmin - in the end it's the exact same tool - only more neat and less powerfull i think -- I'm not bashing them, though, I'm just stating a fact :)
 
Looks ugly as hell =] imo
 
11:29 AM
@SecondRikudo How long do you think this fight will be?
 
@Fabien Hopefully, (yeah right) it would be sans-flashbacks.
 
@RonniSkansing I'm a sucker for bootstrap themes :x
 
@MoshMage tbh, it (things like that and wp) is good for small companies.
 
@DaveRandom who do you think should review/merge my DOMNodeList PR?
 
@FlorianMargaine jup, we always merge up through branches up to master. Everything else is just a cherry-picking hell....
 
11:39 AM
@Leri with enough customization is good for anyother company as well, but I have to agree with you :)
 
@FlorianMargaine we just backport when we discover later that it should also have been in another branch
 
@bwoebi any reason? it's weird to go this way...
 
@FlorianMargaine Well, it seems the natural way to me…
 
well, I think it's weird...
 
why?
 
11:41 AM
because I've seen it done the other way in every other project
:P
 
@FlorianMargaine You have to merge upwards
And cherry-pick downwards
merging > cherry-picking
because newer versions are, in first approximation, supersets of older versions
 
@NikiC they always are supersets, just not strict supersets?
 
Hi
 
I don't know, it seems normal to work on the next version, and if necessary to backport to older versions
 
hi @user27133, welcome
 
11:44 AM
@RonniSkansing Ty
 
but anyway, @Tyrael's mail clears it up
 
12:00 PM
Hello people :)
Is it really true that socks proxies can't be used with stream_context_create?
 
When nerds in a relationship fight, shit gets ugly. http://t.co/RVADAWOZvn
2
@Danack Right. PHP isn't vulnerable in itself.
PHP-CGI in combination with Apache with bash as the default shell might be.
 
how does apache choose its shell?
 
It doesn't
 
I was about to say: "using $SHELL"? then realized my idiocy
 
it's Friday?
friday friday
 
12:20 PM
Do I need to do anything special to get my @php.net mail forwarding working? I want to add it to my github so I can author branches for php-src using it, but I'm going to have to verify the address and it doesn't appear to work.
 
@Leigh I'd goto tyrael, he's a lot of experience with various systems
 
@FlorianMargaine you do, when you install apache
you create a separate user for apache (like "www") and said user has a shell set if you have shit-for-brains or are using ubuntu for server (removing duplicate)
 
hi all! can someone help for me with this? stackoverflow.com/questions/26006293/…
 
Good morning
 
@FlorianMargaine Let it sit for a few days (people do review PRs generally sometimes) then ping the list an email, if no-one responds after a couple of days give it a bump, then go in IRC and ask an RM to merge it and they will. I know it's kind of an anti-climax but there's (not unreasonably) usually a desire to give people time to e.g. get back from holiday to review it
 
12:38 PM
@DaveRandom k. I thought there might be a maintainer for this package
@tereško oh right, thanks
 
@SecondRikudo I'm curious to know what you're holding back on us..
 
should I try reviving properties today
 
isn't the user set to nologin for that sort of thing ?
 
@JoeWatkins Then system won't work?
Or will it?
 
I mean the shell for the daemon user, system doesn't use a shell ...
 
12:45 PM
system doesn't use execve behind the scene?
 
unless you tell it to
 
@FlorianMargaine Which uses /bin/sh... which is symlinked to bash on many systems.
So yes, it does use the shell.
 
oh yeah it does
 
Fuck.
 
12:52 PM
preg_replace replaces only first match, why not every?
 
Any PHP CGI program using backticks, shell_exec, exec, system, etc. is vulnerable.
 
someone should test ...
 
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
  bash
Hah
My server should be safe, assuming the Ubuntu patch actually worked.
 
I'm sure at least some of you have already seen this, but holy sh*t
@AndreaFaulds Yeh, except it's actually the system popen() that's vulnerable, about which there is nothing PHP can do.
@Stol3x code?
 
@DaveRandom isn't that chrooted anyways?
 
The SR-71 Blackbird? Not sure...
 
@Leigh Just on your profile you should set the redirection and it should work. Spam?
 
@DanLugg wut
 
Anyone good with mongo?
Trying to simply update a record's "templates" key with a new array
db.rules.update({ _id: "53ccef696b89c4b008b7ba50" }, { $set: { "templates": [13058, 13057, 13056, 13055] }  })
WriteResult({ "nMatched" : 0, "nUpserted" : 0, "nModified" : 0 })
 
1:23 PM
I love how the guy on the plane just had a long enough patch cable chucking around. I can never find one.
 
Got it, gotta use _id: ObjectId("idhere")
 
@DaveRandom I love how they had patch cables on the plane. As if things weren't hard-wired for reliability
 
@ircmaxell Being a nerd I also drive a Ferrari, and also don't give a crap about undoing the roof and letting it fly off in the wind, being that I had my Ferrari specially made because I didn't like the electric folding roof and wanted a huge unwieldy bit of metal that I had to manually take off. Also, when I know I'll need the roof off, I make sure to leave it on until the very last second.
Also, I too bought the model of Ferrari where you can put you put to the floor to hit maximum speed and then do the same thing again 30 seconds later.
 
exactly!
I thought I was the only one!
 
We're a select group, the ones that match our lives to TV instead of the other way around.
nope, still doesn't work
 
1:34 PM
lol
 
@DanLugg satph
 
malfunction. Don't watch if you still have faith in humanity
6
 
Doesn't stream_context_create support socks proxy?
 
@Convertor Not natively, no, you need to use cURL for that afaik. That's actually a very good point, may have a look at implementing SOCKS5 streams
doesn't seem to be anything in PECL either, I'm a little surprised
 
I'm normally also always using cURL, but my client wish to use stream context create, but so far nothing have been able to route thru socks proxy, pretty surprised myself
 
1:41 PM
God! deadlock error :( I'm doomed!!!!
 
@DaveRandom It's actually quite fun to repeatedly set off up to maximum speed then stop again ;-)
 
Oh, clue has a userland impl: github.com/clue/php-socks
 
Didn't @rlemon made something to work with socks and whatnot as well?
 
huh?
 
@FlorianMargaine wtf did i just watch?!?!?!?
 
1:42 PM
no, I don't think I did
 
I think you maybe meant @rdlowrey, and no I don't think so
 
I remember someone in this room made a PHP Async Socks thingy
 
@CSᵠ I don't know.
 
The jsonRPC class uses stream_content_create, maybe it would be converted to cURL - jsonrpcphp.org/code.php?file=jsonRPCClient
 
@DaveRandom All those nested then calls scare me :)
 
1:43 PM
(I remember because we were discussing how to name the tool)
 
It's for React
@Convertor It sounds like a fun project, I'm going to talk to another_clue about it and see if we can't hack together a userland stream wrapper, then you'll be able to use stream contexts with it. That said, what context options do you actually need?
 
@FlorianMargaine WTF !!!
 
@PeeHaa Wow, we're drawing
 
@Jimbo i should be in there too, looks like i haven't UGT greet for quite some time
@Jimbo @JoeWatkins is more active :)
 
1:47 PM
@DaveRandom Hey man, and you tell me off ...
 
@DaveRandon Proxy, method, header, user-againt.. I guess those would be the main options to be needed.. but basiclly looking for an option to do what jsonRPC client does, just with socks proxy supported.. If I understood your question correctly.
 
@Jimbo for what?
 
@DaveRandom click the ... :P
 
Only because you can't spell :-P
 
lol
> Average: one gay every ~4 days
That's not bad!
 
1:50 PM
lol
 
@Convertor Right so what you really need is specifically HTTP over SOCKS?
 
Yes.
 
@CSᵠ yeah... I'm not one to say it.
 
@FlorianMargaine you had your 2% contribution too :)
 
1:53 PM
@Convertor For the time being, use cURL (that would be your only option unless you want to delve into React, I think) but I have added it to my list of things to do. /cc @rdlowrey
 
Yea, just converted it to cURL for now.. thanks ! :)
 
$challenge->description = preg_replace('/<|>/', '', $challenge->description);
$challenge->description = preg_replace('/\[heading\](.*)\[\/heading\]/', '<h1>$1</h1>', $challenge->description);
$challenge->description = preg_replace('/\[img="(.*)"\]/', '<img src="$1">', $challenge->description);
does anybody knows
what is wrong with this?
it replaces only first match
 
@Stol3x Please read the manual entry for preg_replace().
 
@SecondRikudo I am looking for it already for half hour and can't find it. Please
 
1:57 PM
Period range: 35 days ( August 21st 2014 — September 26th 2014 )
 

« first day (1441 days earlier)      last day (3525 days later) »