« first day (3411 days earlier)      last day (1520 days later) » 

3:37 AM
@CarlosAS If your intention is to know about classes that aren't even loaded then yes you'd have to hard-code them. You can get a complete list from the manual though. You don't have to load every extension. You'll still be missing any extensions that aren't in PECL, but that's a good start.
 
 
5 hours later…
8:13 AM
o/
 
\o morning... I think, I dunno
 
I can confirm, it is monday morning
 
eugh, I was hoping it wouldn't be.
 
cmb
\o
 
8:42 AM
o/
 
\o
 
Do I understand github.com/sebastianbergmann/phpunit/commit/… correctly that php://stdin provides access to HTTP POST data in a CGI/FastCGI context?
 
8:59 AM
I thought that was ://input
not sure though, stdin might be clone of input, and god only knows how fpm works ... and I wouldn't even trust his word on it ...
 
Me, too. But the comment claims that php://stdin can be exploited wit CGI/FastCGI.
 
test it, got a php-cgi kicking around ?
 
I'm too lazy to set up a FastCGI environment to test, though. But maybe php-cgi is enough for testing?
 
echo some=thing with the right ENV set and it will think it's a cgi request (I dunno if that's obvious)
 
I can build php-cgi, sure. But I don't think I ever used that from the CLI for testing something like this.
 
9:02 AM
I'm not sure ... I would dig about and find an answer but I really hate streams
 
I was hoping somebody here would "just know" the answer without having to look.
 
in that test, I'd be surprised if stdin didn't contain whatever we echoed
well
it's a reasonable bit of defensive coding whatever the details of each SAPI are - which may vary and are out of your control ...
 
@SebastianBergmann hmmm. wouldn't it just return the sapi name as php-cgi in cgi context? i believe what the commentor wants to say is "without this change, its exploitable in cgi". but i might be wrong
 
@beberlei Sorry, I was not clear in my question. I wonder whether github.com/sebastianbergmann/phpunit/blob/8.5.0/src/Util/PHP/… is exploitable in a CGI/FastCGI context.
 
9:18 AM
I think PHPStorm's Javascript autocomplete has gone to shit in this last release :|
 
10:06 AM
Why is doing an TLS client in C soo hard... it was a doddle in Go
 
 
1 hour later…
11:29 AM
morns\
 
@MátéKocsis Oops, I may have pushed some conflicting changes. Again.
Not going to push anything more now though :)
 
11:47 AM
@MarkR You may want to add a code example to the get_debug_type() RFC, that's shows how you would use it in an error message (and what you would do without it)
 
ok, will try and get to it later today once work is out the way
 
@Derick Solution is to rewrite it in Rust :P
 
@Derick doesn't php streams provide a TLS implementatino you can piggy back on?
 
12:12 PM
@NikiC Haha, I was about to comment that I had to resolve new conflicts 3 times in a row. :D No problem of course. :)
 
1:03 PM
@beberlei Yes, but that still requires openssl to be present and linked against
 
o/
 
1:28 PM
if a zval IS_STRING, it can't be indirect, a reference, or something else weird that i need to check before zend_string_dup(value, 0) it to somewhere else amiright?
hm seems that way
 
@beberlei zend_string_dup is pretty suspect tho
 
yeah wondering myself why its not zend_string_copy
especially fascinating because the last change of this line was by me 3 years ago, changing the zend_string_copy to zend_string_dup
"Fix segfaults due to zend_string_copy used, but zend_string_dup needed." - i call bs* ;)
 
^^
 
1:44 PM
@NikiC 11am has passed for today ;-) Want to try tomorrow or Wednesday for the recording for your new RFCs and potentially generics? I've had people ask me to talk to you about the latter :D
 
1:59 PM
@Derick Which RFCs do you want to talk about? ^^
 
@Derick uh totally forgot that second one exists
 
:D
 
@Derick Would Thursday also work for you?
 
No, I'm at PHP UK then. Next Monday though
 
2:05 PM
\o morning
 
Zia
2:23 PM
Hi every one
 
2:35 PM
PHP UK is HOW much?!
 
totally reasonable it seems to me 300 pound for 2 days conference.
 
Good grief I never realised conferences outside the accredited space were that expensive.
I guess that's the london tax
 
not sure its a london tax, you can pay much more for conferences
phptek 600 usd for 2 days, tek.phparch.com/registration, IPC 670€ for 3 days, 500€ for 2 days
 
Too rich for my blood I think xD
 
Even Craft Conf, a 2-day conf in Budapest, Hungary costs similar
probably it's because usually really big names (like Martin Fowler last year) are invited
 
2:49 PM
the cost for the conference ticket is still the smallest expense in most cases for a company, you have 500-800€ daily rate for the employee gone plus in most cases travel, hotel. And when you compare it with booking an inhouse training, it is especially lightweight.
also conferences target developers from the enterprise
 
Alas, I'm a consultant, having one of my clients pay for it seems... unlikely
 
@MarkR that's cheap
many professional conferences (big IT or Enterprise engineering) hit $5000 USD for 3 days
 
@MarkR the clients in aggregate should somewhat pay for your continued learning?
you shouldn't expense them the ticket, but they should pay you enough that you can go to one, two, three conferences a year imho
 
I'm going to my first one in April, 1 day affair costing about £120
 
That's definitely reasonable, and there are a lot of quality conferences at the sub 200 GBP price point
 
2:57 PM
Any more mentions of the PHP get together? Last I read Jetbrains was in on it
 
3:40 PM
@MarkR no public mentions afaik
 
Ah okay, thanks @bwoebi
 
4:15 PM
In connection with externals.io/message/108571#108596 (final/readonly etc. properties), which name would be the best as the modifier? We have the final, readonly, locked, and sealed ideas so far.
 
@MátéKocsis To be strictly correct, it's actually writeonce
but well, go with readonly
final is a bit weird in that it sounds like it could mean anything (mostly: non-overridable)
 
@bwoebi Yeah, I agree. But I didn't want to propose it as it feels really clunky. :)
 
Yeah, hence readonly
 
writeonce would be nice, less chance of confusion than a readonly variable that explicitly can be written to
 
@bwoebi I'd also reserve final for this purpose, so I'll propose readonly unless there is a better idea :)
or what about sealed/locked? Do these also sound right for you?
 
4:21 PM
@MátéKocsis sealed/locked seems too ambiguous
 
Aye agree with Tiffany
 
yeah, no. :-)
 
ok, thanks for the input :)
 
Curable?
When you cure something you can no longer change it.
 
@MarkR what does that even mean?
too exotic? :-D
 
4:24 PM
how does final compare in this context versus how final typically works in PHP? is there a difference (other than final is used with classes)
 
Final as it's used in PHP doesn't seem to bear any relevance to readonly / writeonce
public fixed $x ?
 
feeling more and more partial to writeonce, it may feel a tad awkward, but it leaves nothing to the imagination which is good
no ambiguity
readonly is familiar
 
I'd vote for writeonce. Most descriptive, least possibility of confusion.
 
@NikiC I've plopped you in my calendar for 10am UTC/11 am CET on Monday the 24th in my calendar - let me know if that doesn't work?
 
I won't vote for RFCs until I feel more comfortable about it, but I would vote for writeonce
 
4:29 PM
@MarkR @MátéKocsis TBH, writeonce would be my personal favorite as well, thinking a bit about it.
 
@bwoebi Huh :) it also really feels too exotic for me. :/ I'd probably prefer the "locked" name even though it's a bit ambiguous: it's familiar and doesn't lie ^^
but I am open to put the modifer name to vote as well if I can't find a name that has a clear support. :)
 
what I like about writeonce is it's explicit in its meaning. everything else is implicit to some degree
for someone whose reading comprehension can vary and tend to be terrible, explicit is good :)
 
@Tiffany Agreed. Thank you all for the help! I'll wait some more days with the RFC, but if nothing changes then "writeonce", "locked" and maybe "final" will also be proposed.
 
4:45 PM
In the context of PHP, "final" typically means something that cannot be extended or overwritten (inheritance).
 
@MátéKocsis is your plan to ask for approval regardless of keyword, and then simple majority for the keyword?
 
(PHP voting desperately needs transferable votes)
 
:P
 
@MátéKocsis Always take into consideration that someone not familiar with what the keyword means at that location in PHP … he'll likely have some assumptions about what it should mean. And you do not want him to have bad assumptions.
e.g. if it's final and you're really a java dev, then you'll assume it'll be ctor only for example
 
also, English language fluency, granted, I don't know how much of an issue this can be
 
4:49 PM
@bwoebi Ah, you're right :) Then we should really remove final from the list.
@beberlei exactly! If I had a clear name then I wouldn't put the name to vote. But I'd like to avoid the situation that the vote fails because of a bad name choice.
 
good! :) sometimes how the votes are layed out makes the difference
 
Be sure to do the concept as its own vote
 
5:23 PM
hi
 
6:18 PM
Hello
 
 
1 hour later…
7:26 PM
Hi guys
Pls i am have a problem to throw to you guys i need a solution asap
 
Please don't throw problems. You could hurt them.
 
8:28 PM
Assuming i hav a set of a set of number in array N=[2,34,5,6,7,8,9,3,2,1,6,7,4,6,2,8,9,5,20] i have a target T=23 i want to find at least 3 possible combinations of numbers in the array that when added gives me T e.g 7+4+2+9+2, anoda combination could be 20+9+1, and the last would be 20+8+2 or others but not more than 3
 
8:39 PM
@spartyboy 7+4+2+9+2 is more than 3
Is this homework?
Are you asking us to do your homework?
 
@Alesana I think he meant (7+4+2+9+2) = 1, ( 20+9+1) = 2 ... and am sure its an assignment.
 
Provably from codwarz
 
yeah or maybe some code challenge. I remember seeing something like that in an interview.
 
Keep this in mind when asking help for homework questions: meta.stackoverflow.com/a/334823/2524730
Particularly
Make a good faith attempt to solve the problem yourself first. If we can't see enough work on your part your question will likely be booed off the stage; it will be voted down and closed.
Ask about specific problems with your existing implementation. If you can't do that yet, try some more of your own work first or searching for more general help; your professor is likely to be a better resource at this stage than Stack Overflow.
 
9:05 PM
@Ghostff Yup the question was more rhetorical than anything :P
 
Anyone have experience with web scraping?
 
@SalOrozco a little
 
Also a little
 
There is this site that you search for results. Then it generates a download link. You have to select the download link then it downloads the dataset. It is possible to do that with a script?
 
hello
why function syntax in PHP is different ex: session_start(), setcookie()
it will be very easy to remeber if ti was like seesion_start(), set_cookie()
or sessionstart(), setcookie()
 
That's a good question tbh
 
every time i have to look up if the function have _ or not
 
You can use an IDE that autocompletes the functions for you
 
History mostly. Typically functions begin with their extension name followed by an underscore - all the session_* functions come from the session extension
 
9:20 PM
ahhhh i feel more comfortable not to use it
 
Some function names follow their C / Perl / original library counterparts
 
@sayedashraf write an RFC to alias function names so there's some consistency :P
 
"Consistent function names" (see wiki.php.net/rfc and google for "php rfccodex") has been discussed multiple times over the years, but it's never passed for various reasons - BC breaks, effort required, would be better fixed if/when PHP does scalar objects
 
@sayedashraf Why's that?
 
Day off today.
 
9:29 PM
when i start learn a new language i prefer not to use it
 
@Alesana not an assignment its something am stuck at while working and dat seems to b d problem, my stack overflow account is unable to ask questions since its been long i last logged in, i av solved the problem but when the array is greater than 9 it gets stuck
So i need an optimal solution
 
9:55 PM
what a long, long Monday it is
 
10:16 PM
@Ekin has it been strange at all?
 
10:26 PM
strange? not really. mentally tiring? yeah
sometimes Monday's come with this 'yaay! fresh, productive week incoming' feeling though, and I enjoy that
this one was just too long
I blame not sleeping more hours last night :-P
 
cmb
11:14 PM
@SebastianBergmann yes ((F)CGI specs mandate to make the request payload available via STDIN).
 
11:42 PM
@Ekin "what a long, strange trip it's been"
 

« first day (3411 days earlier)      last day (1520 days later) »