« first day (2022 days earlier)      last day (2917 days later) » 

12:26 AM
@bwoebi At present there is no way to distinguish between ?Foo $v = Null and Foo $v = Null with respect to knowing if ? should be printed.
 
@LeviMorrison It actually is the same
There is no difference in semantics
you may print it either way
 
We don't consider error message changes to be BC breaks right?
 
right
 
As per Dmitry's email he seems to think that example works when it's an example if it not working.
Or something like that.
 
@LeviMorrison I'm confused by it.
 
12:31 AM
The example or Dmitry?
(or both)
Oh my... this routine is horrific...
So basically we don't store the default value anywhere other than the opcodes?
I'm inclined to store 0, 1, 2, or 3 in the zend_bool for allow_null.
> 0 would keep current semantics but the 1, 2, or 3 would be a bitmask of why it is allowed.
1 for default of null, 2 for explicit, 3 for both
@bwoebi Within this condition here how should I detect if there is a default value of null?
 
@LeviMorrison correct
@LeviMorrison that condition is only reached for required parameters… thus it never really has a default value
in that case ?Foo $v and Foo $v = null are equal
 
I'm confused; Foo $v = null would be required sometimes
 
@LeviMorrison yes (if there are other following required parameters)
 
function(Foo $v = null, $concrete) is required yes?
 
^ yes, that's the (only) case where this branch is entered
 
12:44 AM
But...
Oops
function(array $v = [], $concrete) is possible yes?
 
don't think so
 
3v4l time
 
hmm, seems to work
but the default is unused in that case
It's equivalent to array $v
 
But... it wouldn't get printed?
 
correct
 
12:46 AM
The type info?
What?
Let's see if I can eek out a case where it fails and has to print info
 
function(array $v = [], $concrete) should be printed as function(array $v, $concrete)
 
Why isn't it including the default stuff?
 
@LeviMorrison Because it has no default. the default is thrown away at compile-time
I don't know why that doesn't error
but fine
 
That's a PHP 8 deprecation thing.
(imo)
 
@LeviMorrison nah, we can deprecate that one already in 7.1
(to fix, just remove default)
the only one which is PHP 8 is the null default on required args
 
12:50 AM
I'd rather just one RFC to do both.
 
possibly
 
Alright, time to see which tests break because of the formatting changes ^_^
 
but just saying, just change signatures from Bar $foo = null to ?Bar $foo on required args (and to ?Bar $foo = null on optional args)
@NikiC oh, $this is not null, but actually undef on calls from static contexts
 
@bwoebi This is done; still running the tests to see which break ^_^
 
fine
 
12:59 AM
Tests are running really slowly for some reason.
 
1:11 AM
@LeviMorrison well, off to bed now … If anything's up ping me or Joe, we'll reply tomorrow ;-)
 
Will do.
These tests are still running.
Several of them seemed to hang for extended periods.
 
@LeviMorrison AFAIK there's an option to make test runner skip slow tests (grep for slow in run-tests.php)
yeah, SKIP_SLOW_TESTS=1
or eventually also SKIP_ONLINE_TESTS=1
 
Wes
1:33 AM
damn generators kick ass. damn :P i'm loving what i'm doing
Time: 2.63 seconds, Memory: 30.00Mb
OK (1132 tests, 6892 assertions)
something made the tests run twice as slower :\
 
Hi. What hash function is better to use to requests?
 
2:22 AM
hello
i want to ask a question...
i call data from mysql using php
$sql = "SELECT product_number, jit_number FROM production_jit WHERE product_number= '$productnumber'";
the data will appear something like this...
product number = 987654
jit number = 123456 , 456789
my question is, how can i update to mysql only for product number=987654 , jit number = 456789..
 
Select, explode, implode, update
Or, make more afforts to move this string data into separate table.
 
@sectus can u give some example.. sorry i'm beginner...
 
2:44 AM
@MuhammadYusufAhmadShahRudd , studytonight.com/dbms/database-normalization.php - theory
 
We have some segfaults that seem to happen when disk is near full (or something like that).
Haven't appeared to fully reproduce it.
Actually.. I think it may have to do with my parallel filesystem instead.
I think I've fixed all the issues with the error messages but because of these intermittent filesystem issues I'm having I can't verify it locally very well.
I've pushed to the github branch so hopefully the travis build will give me more info tomorrow.
As well as the filesystem issues will resolve ^_^
@bwoebi I have fixed all the tests I can see but as mentioned above I'm getting intermittent failures on filesystem tests which generates a lot of noise. I've pushed the changes to github so hopefully you can try it out tomorrow when you have time.
 
Roh
3:29 AM
Hi guys
Guys I need some consult.
I would like to make a proxy with PHP or Python. but there is some questions.
I want to use free web hosts then I just can use port 80. I want to write a program on the PC side and
write a program by PHP or python. in fact I want to write something like a PHProxy but with complete
service. what I mean by saying "complete service" is that e.g. as you know you can not log in or out in the websites
which you have an account by PHProxy.
what's your opinion?
 
Wes
i'm broken, went jogging... more like walking
 
Roh
Which one is better, PHP or Python?
 
Wes
if you ask that in the php room, then it's gonna be php
 
Roh
@Wes Thanks for answer but this is not going to be a simple PHProxy. I'm going to make a complete proxy with a bit cryptography. the question is that with which one this is easier to be done?
 
Wes
i don't know python so i can't tell
 
3:50 AM
happy friday!!
 
Where is RB?
 
Wes
!!rebecca
 
Wes
Curious to try out @HipHopVM's new Pipe Operator? https://docs.hhvm.com/hack/operators/pipe-operator Try it out in PHP7: https://github.com/sgolemon/php-src/tree/pipe.operator Coming soon to an RFC.
@Gordon i forgot to answer this yesterday. Jerry is clearly a moron :B
 
Hack all the things :)
 
Wes
4:06 AM
\o/ maybe function(al) won't be a readability nightmare with that feature
why the double dollar though? was just one not possible?
ie trim($input) |> explode("\n", $) |> array_reverse($)
 
@Wes Short answer: It's what HackLang uses, and I don't have a pressing reason to deviate.
That, and I imagine a single $ would introduce some subtle parser conflict.
 
Wes
not too bad. will you propose the same syntax for php, i suppose?
 
Yeah, that's the idea. I'll toss together a formal RFC later tonight (or more likely tomorrow)
 
Wes
awesome :D
 
It's also what F# uses, afaik
and it seems to be really clear/readable
 
4:15 AM
Yeah, I'd been waiting for this to land in HackLang for months and have been eager to bring it to PHP as well.
Readability++
 
Reading typescript docs... may actually even consider JS not sooooo shitty today...
but maybe I'm sleepy.
 
I am trying to remote log into a website and fetch some data, but I keep getting a 411 length required error. I have tried different methods but still can't figure it out.
 
Wes
@Sara the feature popped up in the room several times, someone (maybe bob) also proposed it to be extended with list()
[$a, $b] = foo() |> [$b, $c] = baz($a, $b, $$) |> [[$d1, $d2], $e] = bar($b, $c)
which would be a nice addition too
 
The website redirects to another page after logging in but does not fetch data from the redirected page.
Can anyone help me resolve this issue??
I am doing this using PHP CURL
 
Wes
or maybe that's already possible?
 
4:26 AM
@IkennaAnthonyOkafor , add option to the curl that follows redirects...
 
I have done that
 
There is no response at all? Even headers?
 
There are headers
I also logged the curl request but couldn't figure out what is wrong with the request
 
@Wes I'm not sure what that syntax is meant to do... o.o
 
Wes
$$ = foo() |> baz($$)
->
list($a, $b, $c) = foo() |> baz($a, $b, $c)
 
4:38 AM
HTTP/1.1 302 Found Cache-Control: public, no-store, max-age=0 Content-Type: text/html; charset=utf-8 Expires: Fri, 29 Apr 2016 04:29:08 GMT Last-Modified: Fri, 29 Apr 2016 04:29:08 GMT Location: /Dashboard/Charity Vary: * Server: Microsoft-IIS/7.5 p3p: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" X-AspNetMvc-Version: 3.0 X-AspNet-Version: 4.0.30319 Set-Cookie: .ASPXFORMSAUTH=ACC7260041DB75226F47B6C14C18FD136F46891F4EDEB8E30E49BA2CFA425142C8A988FA8E88EE40D092E32E123FB8269C1206068398F860BCE902C5A095BBF74642B98E15CBB617E1; expires=Fri, 29-Apr-2016 06:29:09 GMT; path=/ 
 
foo() |> bar($$...) maybe?
 
then this
HTTP Error 411. The request must be chunked or have a content length
 
Wes
@Sara i probably got it wrong, you could try to ask bob. though, will the syntax baz_returns_map() |> bar($$['key']) work ?
 
$ sapi/cli/php -r 'var_dump( range(1,3) |> $$[0] );'
int(1)
Though fwiw, looks like $$... doesn't parse, so I do need to fix that
 
Wes
nice! :P also with objects and stuff i suppose
 
4:42 AM
$ sapi/cli/php -r 'var_dump( ((object)["a"=>42]) |> $$->a );'
int(42)
 
Wes
i'm gonna love that, in fact i hate reading every function call that has more than one nested pair of parentheses
$b->baz($a->foo($bar)) to $a->foo($bar) |> $b->baz($$)
so much better
 
That's the idea, yep. And you can split each pipe onto its own line, so you can read the order of ops top to bottom, instead of inside out.
 
Ekn
that looks pretty neat indeed
g'morning
 
4:57 AM
moin
 
Ekn
'nin
 
Wes
damn u lactic acid
mornin \o
 
Ekn
you walked a lot I assume, Wes
 
Wes
5:00 AM
nope :B gave up after 2.7km, at the incredible speed of about 6kmh
 
2.7km that's to much..
 
Ekn
still, bit faster than average walk speed :)
 
@Wes :p Thanks for pointing out that I had unpack syntax backwards. ...$$ does exactly what it's supposed to do.
 
Wes
@Sara lol, i didn't notice :P
used to jog 10km / day, so 3km is shit. but no point in continuing, too much pain in the legs -__- will go better tomorrow
 
5:24 AM
hi all
question?
 
5:59 AM
mornin
 
6:51 AM
Moin
 
7:01 AM
moin
 
Morning
This is a very-very inspiring and good post, it's been some time I've read something that interesting (not becca): Being a developer after 40
7
 
7:20 AM
ormgtormgtoijioeytewifcdn
 
hi all
 
Ekn
o/
 
moin
 
7:27 AM
\o
@PaulCrovella E_TOO_MANY_BAD_QUESTIONS
 
morgoninjanjenging
 
moguhh
 
How to insert data to database with multiple checkbox with different name in php ? with pastie.org/10817408
 
Ekn
I can't take a flag back, can I? picked the wrong flag :(
 
7:29 AM
@Saitama ain't that the truth
 
is it possible with that
 
@Ekn no. it happens - don't worry about it.
 
"way off" means "no" or "yes"?
- is still sex out of table?
- way off
 
user image
11
lol @JoeWatkins :-P
@Shafizadeh In that context, you would say "off the table" and "way off" would mean "yes, it's off the table"
It's like saying "it's not only off the table, it's a long way off"
 
7:39 AM
oh, I see, thx
 
Beds are easier than tables anyway
 
:-)
 
7:53 AM
@PaulCrovella Pfff, what the actual f*ck? The questions get better every day.. :(
 
Anonymous
\0/ I got one email response to the 500th job internship application I sent.
 
@samayo Well, better one than none ;-)
But that's pretty sad, is the economy in your country in such shit?
Or any other reason why companies don't want interns?
 
Anonymous
Nope, the economy is fine. My CV is the shit one
 
Ooooh, LOL :)
Well, for an internship, a matching education and a good motivation should get you a long way.
 
@PaulCrovella dafaq is that question?
 
7:55 AM
@Saitama You actually found a question in there?
 
@Oldskool a potato might stand a better chance
 
@PaulCrovella Probably... just put an ethernet cable into it an start praying it works.
 
@Oldskool :P
 
Seems legit.
 
!!rebecca
 
Ekn
@Anmol lol, good suggestions :p
 
Please don't forget to turn off the lights on your way out.
 
^ true dat
 
@PaulCrovella Was it you that pitched the idea for introducing a rep threshold for asking questions the other day? I'm more and more starting to feel like that might not be a bad idea.... all these questions today make me sad.
 
btw, is it possible to debug multi threaded application in phpstorm?
 
Mornin 11!
Happy Rebeccaday!
 
8:09 AM
\o/
 
@Oldskool Yes. I've no idea whether or not it'd be for the best, or what the minimum should be, but I really do think some experimenting with it would be worth a shot.
certainly couldn't make things much worse
 
@PaulCrovella True. All those lame questions are usually by people with <50 rep.
That might be a good testing threshold. Just 5 upvotes or 2 accepted answers.
Should be do-able.
 
@Oldskool is wish SEDE had data on deleted and rep-at-the-time stuff too.. it'd be nice to do some data mining to see where the signal/noise thresholds are
 
@SergeyTelshevsky So many great links there, thanks for that
 
Ekn
It was indeed a nice reading
 
I have about 5 more tabs open from the links there that I need to get through now :)
 
@DaveRandom we do strange things when nobody is watching ...
 
@Saitama woah?
 
@JoeWatkins *hurriedly puts rhubarb and tin opener away* I have no idea what you are talking about
 
8:22 AM
morning btw :)
 
@DaveRandom lol
 
@Naruto you scored 52k on slither.io?
Why are there so many so many stupid questions today?
 
aaah, I just read your reaction, so I was like wtf he talking about?
and yes, alot :P
 
I could only go to 30k recently... :D
 
8:26 AM
well I died because I had to go :P
 
jeez, we need a dedicated close reason for all those "expects parameter N to be X, Y given".
 
No way, the potato has started coding: stackoverflow.com/questions/36933288/… xD
 
@Oldskool :P
 
Crouching in a corner is the online version of pause.
 
> Learn all you can about LLVM. This is the galaxy where true innovation is happening now. This is the foundation for the next 20 years.
This rings pretty true
 
8:29 AM
@Leigh Where from?
 
1 hour ago, by Sergey Telshevsky
This is a very-very inspiring and good post, it's been some time I've read something that interesting (not becca): Being a developer after 40
 
@Fabor if it's a game which moves by itself and you can only give it direction, while being attacked by others, there is no crouching :P
 
the thing that is remarkable is not a single project
 
!!wotd
 
woodnote: a wild or natural musical tone, as that of a forest bird.
 
8:31 AM
@Leigh yeah, the type of article where you don't skip :)
 
Ekn
tabstabstabstabs...
 
!!rebecca
 
I think the remarkable thing is that we can talk about doing any of this at all ...
also, I don't much like llvm ...
 
The most remarkable thing about software engineering is that anything works at all, even though it is built on towers of bugs and legacy code.
10
 
8:34 AM
@Oldskool oh god, and someone is "helping"
 
this is also true ...
 
@Gordon Boo! The message exceeds the 140 character limit. :-(
 
heh
> The product of these efforts ran in a Pentium II server hosted somewhere in the USA, with a stunning 2 GB hard disk drive and a whooping 256 MB of RAM. It was a single server running Windows NT 4, SQL Server 6.5 and IIS 2.0
 
have you seen that PV studio post @NikiC ?
they are the guys with static analysis thing, they keep posting about how crappy php-src is ...
(they done it at least one other time that I remember)
 
8:37 AM
@JoeWatkins I've scrolled over it
 
@NikiC what do you make of the size_t thing ?
 
@Gordon first we need this as a dedicated close reason
 
their license fee is ~$7k for 9 devs, in case anyone was wondering !!!
(yearly)
 
@JoeWatkins in SplFileObject?
@JoeWatkins You can drop the MAX there
 
what about size_t > -1
 
8:40 AM
@PaulCrovella that's OT "must contain minimal working example"
 
@JoeWatkins That should be != -1
 
@PaulCrovella he's not giving up on helping.. same guy.. xD stackoverflow.com/questions/36933288/…
 
maybe with type casts though
 
yeah I think casting is probably best
we're looking for (int) -1, right ?
 
8:44 AM
@Ekn stab stab stab? kind of violent..
 
@JoeWatkins lxr.php.net/xref/PHP_MASTER/ext/readline/… is the only consumer, so it should simply be consistent between both
 
I should really just ignore Lester...
 
right, got it
 
gonna start being on the wrong side real soon
 
@Naruto and someone upvoted it... wtf
 
8:45 AM
@Ocramius Aren't you at a conference?
 
nobody understands..
 
@Danack ya
 
@JoeWatkins the SECTION stuff looks like false positives in their analyzer
 
@Ocramius ahem CLOSE THE DAMN COMPUTER AND TALK TO PEOPLE M'KAY?!
 
That's just a generic-code-used-in-specific-situation kind of error
 
8:46 AM
@Danack can't. Sitting in the front row and listening to a talk about stuff that I wrote
so I need to stay awake
 
Ah - how about reading that thing I twittered you?
 
Ekn
@Leigh tab(s).. :p I've been keeping the min. open tabs amount at 20 for the last ~10hours. It is violent, when there is not enough coffee && not even 6am.
 
Lemme open zeh twitchers
@Danack your RFC seems to be very close to what I proposed and retired
the problem with that style of interfacing stuff is instanceof, imo
it breaks all the OO semantics :-\
it would work if ALL functions in PHP were treated like closures
basically, I don't expect $nonObject instanceof Something to be true, ever
 
Let's discuss this on twitter.
 
@NikiC it does check the same condition twice though, doesn't it ?
 
8:51 AM
@JoeWatkins yes, but there's nothing wrong with that
 
oh I see
 
their analyzer simply doesn't treat macros like it would an inline function
 
Wes
mornings 2
 
@NikiC should it ?
compilers don't
 
When should I use header("Content-Type: image/png"); ? Actually I don't want to show any image to user, I just want to save it like this imagepng($im, "../to/path/name.png");. Still should I use that header?
 
8:56 AM
@stack if you are saving an image, why do you need that header then?
 
ok, I don't need that header :-)
to be honest, I didn't know when should exactly use a header
 

« first day (2022 days earlier)      last day (2917 days later) »