« first day (1781 days earlier)      last day (3161 days later) » 

10:00 PM
Tbf it's simple examples like that where I can handle it @bwoebi
 
@r3wt obviously ;-D
 
is that landing in 7 as well?
 
@r3wt no. targeting 7.1
 
damn
 
feature freeze was too early^^
 
10:01 PM
14 mins ago, by tereško
do you want $array + [$column => $value] ?
so I was actually correct
 
let me confirm
nope
 
BTW @bwoebi I think I would like it better if the parentheses would be mandatory
That way there is at least a bit of consistency when reading code that uses it
 
duh, the parens really only are there because the parser complains otherwise
 
@r3wt This would work now
function array_column_sort(&$array, $key){
    usort($array, function($a, $b) use ($key){ return $a[$key] == $b[$key]?0:$a[$key]>$b[$key];});
}
 
Yeah but allowing both $x ~> $x * 2 and ($x) ~> $x * 2 kinda annoys me
 
10:07 PM
@PeeHaa I agree....
($x) reads as an argument list easier to me
 
@PeeHaa && @Orangepill thank you
 
actually I like ~($x) $x*2
 
@PeeHaa every other language does it that way
(the way proposed by @bwoebi)
without for single arg, with for 0 or >=2
 
Jesus. I thought you loved those things!?
:p
 
tss
I do, when they make sense ;-)
 
10:14 PM
:D
 
@Orangepill I read that as bitwise not $x
 
All I can tell you is if it gets accepted all my short closure arguments will be in parenthesis regardless of how many arguments there are....
@Danack I'm sure the parser would too :)
 
@Orangepill That'll be ambiguous with e.g. ~($x) -$x … bitwise not of $x minus $x? Or the closure returning the opposite.
 
@bwoebi yeah...
so is sperm operator going to be the official name for ~>
 
no, jizz operator
 
10:23 PM
or approximately greater than
 
or, because @bwoebi is boring, T_TILDED_ARROW
 
T_EJACULATED_ARROW
 
@Orangepill I'm not going to give it an official name. T_TILDED_ARROW is just the internal token name.
It's more fun when you make the name up …^^
So, you might settle on sperm operator and half the world will name it that way… then people can say "PHP even has the sperm operator!" and everyone will give them a confused look :-D
 
E_HOMO_SUCUS not expected in line 32
 
@PeeHaa You solved your Composer issue?
 
10:27 PM
DEAD
@Orangepill the liberals will love that
 
@kelunik Yes totally. Was totally my misunderstanding of how composer works. I named my actual branch dev-foo instead of just foo
 
I thought it would accept both then.. anyway, glad it's solved. :-)
 
I can happily mock interface with an unset() method now :)
 
11:05 PM
I can't get phpdoc to work. I'm doing php ./vendor/bin/phpdoc -d ./src -t ./docs it says it finds the files, parses them, etc. No errors. I got to the docs folder and open the .html and it looks like this. What am I doing wrong? I tried v2.8 and master, and even ran it on monolog's src and still same thing.
 
Next time be a tad slower with removing :-P
 
11:21 PM
@crypticツ Is there anything in the raw html?
 
11:31 PM
I'm working on adding HTTP/2 multiplexing to ext/curl, and having some difficulty
it should be as simple as adding a few constants (using REGISTER_CURL_CONSTANT()) and in fact should work even without that if you're running libcurl >= 7.43.0
 
LGL
Should I use array of Param or bindParam() in PDO?
 
currently, the behavior I'm seeing it that if you set it to 0 (or CURLPIPE_NOTHING) I get the expected behavior of HTTP/1.1 concurrent requests, but if I set it to 1 (CURLPIPE_HTTP1) or 2 (CURLPIPE_MULTIPLEX) the response time is the same.
@LGL do you mean an array in ->execute() vs ->bindParam()?
 
LGL
@DaveyShafik yes, sorry for misunderstanding
 
@LGL I personally prefer bindValue() and bindParam(), because I prefer to explicitly bind value types
 
@LGL well, they're subtly different, with the bindParam you are creating a reference, which might have unintended side-effects. I personally prefer the ->execute([...]) way;
 
11:37 PM
WTF?!
> strip_tags() no longer strips self-closing XHTML tags unless the self-closing XHTML tag is also given in allowable_tags.
Sense it does not make
 
LGL
When i did bindParam I only need to call the variable once. but with the array I need to set as many time i use the name. I guess the array is safer. ;/
 
@DaveyShafik what are you testing it against that would make you expect to have faster response times?
 
@PeeHaa php.net doc quality is phpish… what else would you expect :-P
 
@Danack: an HTTP/2 multiplexed capable server
 
11:39 PM
@LGL what the fuck are you talking about?\
 
@bwoebi Somebody most have been drunk when writing that
To the edit mobile!
Is 3v4l not working for you people or just me?
 
how exactly is array "safer", @LGL ?!
 
loads for me, at least, @PeeHaa
 
how exactly bindValue(':name', $parameter, PDO::PARAM_INT); is unsafe?
 
LGL
Cause you have to use the variable as many time as you call on specific name. with bindParam I just had to set it once @tereško
 
11:41 PM
@DaveyShafik Can you try to run a snippet?
 
LGL
I prefer the array it's better.
 
@PeeHaa yeah, it's broken :'(
 
@sjon halp :)
 
@LGL THEN FUCKING USE bindValue(), FOR FUCK SAKE
 
LGL
@tereško FUCK you and your bindValue(), I prefer array.
 
11:44 PM
Fuck it and stop using fucking stupid mysqli/pdo prepared statement APIs
 
@DaveyShafik then I guess it's probably time to fire up wireshark to inspect what's actually going on.
Please just use the ignore button people. It makes life so much more pleasant.
 
@Danack except it's really icky to do so with HTTP/2 :/
 
@Danack twist: test server only replies to tls encrypted streams.
 
CharlesProxy all the things...
 
@Danack http/1 only.
 
11:51 PM
morning o/
 
Mornings o/
 
ok, who's using nginx here?
 
@Danack is :P
 
/waves
 
is it possible to share a config option for multiple location directives in nginx config?
 
11:57 PM
(I thought it might be related to this.....)
@tereško The short answer is, don't do that. Nginx config is deliberately very simple and lacks proper support for variables or variable like things inside it. Instead of trying to do that, you should auto-generate your nginx config using whatever tool you like (e.g. PHP) and then use that to insert variables in multiple places in the config.
 
@Danack So if I told you I use an include for for ssl config I am a bad person? :P
Or just in that specific case it is bad?
 
@PeeHaa an include is okay, as it's not a variable....and it's just another form of composition.
20
A: Using variables in Nginx location rules

DanackYou can't. Nginx doesn't really support variables in config files, and its developers mock everyone who ask for this feature to be added: "[Variables] are rather costly compared to plain static configuration. [A] macro expansion and "include" directives should be used [with] e.g. sed + make o...

 

« first day (1781 days earlier)      last day (3161 days later) »