« first day (3762 days earlier)      last day (1177 days later) » 

12:01 AM
@Crell Nice :D Is this enough to convince you? ^^
 
I will accept the verdict of the Wiki gods.
So then, do both reflectdion cases extend a UnitCase class, or implement a UnitCase interface?
 
@Crell Lol :D Awesome
 
And... then I guess UnitEnum fits for both pure and backed cases. cries
 
@Crell The only thing I'd actually do is rename ReflectionEnumPureCase to ReflectionEnumUnitCase.
An empty base class seems pretty useless for now. We can figure out what ReflectionEnumCase looks like once we introduce ADTs.
 
That's it? That would be the only place the unit appears in code. And then what do we call IterableEnum?
 
12:04 AM
@Crell Should've worded that better. "The only thing in reflection" ^^
 
So does ReflectionEnumBackedCase still extend ReflectionEnumUnitCase then?
 
Yes, I'd still rename IterableEnum to UnitEnum.
@Crell Yes
 
Are you telling me to change pure back to unit throughout the whole damned spec?
 
And given our whole terminology discussion, I'd also say BackedEnum should probably extend UnitEnum. 😇 whispers don't kill me please
 
/me wanders over to his knife collection.
 
12:07 AM
It would just make more sense to me given that we Unit now pretty much means Pure|Backed.
@Crell To make you feel better, I've renamed everything in a local branch. And I also have around 50 things to fix after Nikitas code review ^^
 
I have seen somebody add a JSON object as a long string in a MySQL database. Is that considered bad practice?
 
Depends on context.
 
Is a column they use to store the user roles
 
Do you ever want to query it as JSON? (Current MySQL versions totally let you do that.) If so, that's bad. If it's just an opaque blob you don't care about, use a JSON field.
IMO a JSON field is better for that.
 
I'm guessing what they do is get the result and json_decode() it into a PHP array.
 
12:13 AM
Which is valid, but limited.
@IluTov Serves you right! :-P So I guess we're not calling the vote tomorrow.
Do we keep "pure" anywhere then?
 
12:31 AM
@Crell Not implementation-wise I guess, but makes sense to keep it in the RFC for clarity.
@Crell I think it makes sense to wait a day or two after making a change, even just for us to sleep on it.
 
12:57 AM
@SalOrozco there's a JSON type in MySQL
It's possible to query inside the JSON object
 
really
 
Is it for newer versions of Mysql?
 
Goes back to 5.6, so says the docs, anyway
 
Yes, I see it as an option on the version I'm using.
 
1:05 AM
I guess that's the JSON field @Crell was referring to
I've had to work with one a couple of times, the syntax is different, but learnable
 
They add the roles as long string JSON in a MySQL column at symfonycasts.com or at least one tutorial I was watching. I was just wondering why they did something like that over just having a Roles table.
 
1:32 AM
@IluTov OK, I think everything is updated now. Please check my work thoroughly. :-)
 
1:46 AM
+-
 
 
4 hours later…
5:55 AM
Hi everyone! Its been a long time
 
6:29 AM
Time has been pretty long
13.8 billion years is way too long
 
Was there time before space? Or did they both come into existence at the same point?
 
7:02 AM
@CupOfJava the real question is whether there will be time after space. When people say "nobody goes to space any more, it's too crowded"
 
@JoeWatkins Would it be possible to add support for PHP 5.3 to your Tombs extension? How much work would that be? Thanks!
 
@SebastianBergmann planning a trip to the past?
 
@Stephen Have to. :)
 
@SebastianBergmann don't forget to take some coal, or.. corn.. or whatever people used instead of money back then
 
@Stephen You wouldn't believe how much money is made every day with PHP 4, PHP 5, ...
 
7:16 AM
@SebastianBergmann the irony that they have the money to pay to support their ancient shit, but don't have the money to upgrade to something that's supported by regular releases.
it'd be like me refusing to buy an electric car in the year 2030 and running my own oil refinery because I already have a 2020 petrol engine car, but no one makes fuel for it.
also, working daily with php4? Fuck that.
 
@Stephen your profile photo is amazing XD
 
@CupOfJava hard to believe it's a selfie huh
no selfie stick or anything
 
that's you?
What type of dog are you?
 
but s/dog/hedgehog/
 
There's truly a meme for everything, it's disgusting.
 
7:30 AM
 
What, no filter.....
 
posted on February 02, 2021

 
7:49 AM
@CupOfJava #nofilter
 
@Stephen yassss slay
 
8:44 AM
@LeviMorrison It's a stack, so reuse is very likely
If an fcall finishes and another one starts, it will very likely use the same execute_data
 
8:55 AM
morns
 
Good morning.
 
9:11 AM
@Crell Looks good 👍
I also added the name property to the UnitEnum interface for clarity. I think this addresses all the remaining concerns.
@NikiC Anything blocking you noticed from the code review?
 
@IluTov From the things relevant for the RFC, mostly how tryFrom behaves with incorrect types
It might be worth mentioning whether it's allowed to manually implement the interfaces/properties
 
Hello Team

How to capture all requests reaching your server assuming they come from a hardware device like Time Attendance Device?
I have tried to assess requests via wireshank, and there is a parameter I see in wireshank but I cannot capture it in my PHP codes. The parameter is named as "line-based text data: text/plain "
 
9:27 AM
have a look at $_SERVER, one of the headers there might be indicative of what you're looking for
 
I have tried to save json_encode($_SERVER) but there is no such value
 
9:48 AM
@NikiC Right, I'll clarify this with Larry. Thanks!
 
10:12 AM
@cmb About the 4a89e72 and e9b8b08 (bugs.php.net/bug.php?id=77423): it needs to first go to PHP-8.0, and then PHP-8.0.2, right? And we don't need a NEWS entry, looks like it is just an improved fix, right?
 
cmb
@GabrielCaruso that should already be in PHP-8.0 (by stas); cherry-pick from there into PHP-8.0.2. And right, no need for a news entry.
 
10:36 AM
@cmb Indeed, it already is. I'll pull into PHP-8.0.2 before the release, thanks!
 
11:25 AM
How do I delete stuff from http://downloads.php.net/~carusogabriel?

I've uploaded the 8.0.2 tarballs there instead of in the distributions :face-palm:
 
@Derick Just looked at the fiber RFC and your transcript, and I'm still super confused ^^
The "Fiber" bit is simple, but I don't get the "FiberScheduler" at all
 
Yeah, it's still... wondrous.
 
@NikiC Agree … I was told the FiberScheduler is in itself a fiber and the only place where you can schedule other fibers
feels for me way more complicated than it needs to be
I have a feeling this comes from the mindset of the authors being focussed towards a central event loop scheduling that
I'm not particularly fond of the complicatedness, even if it makes some sense
\cc @Trowski
and @kelunik
I especially feel like the RFC lacks an explanation as to why we need a fiber scheduler and cannot just operate on fibers from everywhere
 
11:45 AM
@bwoebi Well, there is wiki.php.net/rfc/…
 
cmb
@GabrielCaruso ssh to the machine, and remove it from there :)
 
@cmb Ah, that. It's the only thing that I still can't do :( the jump.php.net stuff, right? 2FA, etc. we haven't sort that out
I'll send an email to RMs talking about that again
 
cmb
if you can upload to the machine, you should be able to log in via ssh as well, I think
 
Ok, let mi try
 
@NikiC there is, but I somehow don't feel like it answers all questions in that regard … why exactly would not having the fiberscheduler harm interoperability etc.?
 
11:50 AM
@cmb Oh, I can indeed. What is the path? My named directory does not contain the tarballs apparently
 
cmb
there should be public_html
 
Inside my named folder? Nope, nothing :(
 
@bwoebi no idea ^^
 
12:10 PM
@Ephra user var_dump to inspect, not json_encode.........
 
12:23 PM
Morning
 
12:38 PM
Return type declaration int allows floats to be returned ・ *Programming Data Structures ・ #80697
 
^ Bet on weak types being enabled.
 
1:07 PM
Oh look, reindl
 
1:43 PM
@IluTov We should add value to BackedEnum, too, then. Or readd it.
 
@bwoebi Please collect these questions, so we can answer them in the RFC. The scheduler exists for various reasons, e.g. to be able to suspend the main thread. I guess it's easier to explain if you have an alternative API example, so we can discuss pro / con based on that.
^ /cc @NikiC
 
@kelunik btw, the doc comments in the RFC are not up to date
They still talk about FiberScheduler::run(). That adds to the confusion :)
 
@NikiC I have a sourcecode file that is syntactically correct according "php -l" with PHP 5.3 but PHP-Parser triggers an error. Is this something you want bug reports for?
 
@SebastianBergmann depends on what the error is
E.g. I don't support pre-PHP 8 namespace interpretation because it would be too much hassle
 
@NikiC "unexpected end of file"
 
1:50 PM
@SebastianBergmann can you share the file?
 
cmb
@GabrielCaruso well, you should ssh carusogabriel@downloads.php.net, and then find public_html in your homedir. There are detailed instructions how to use the jump hosts, but I can't find them. :(
 
@NikiC Not as it is. I will try to make that possible, ie. anonymising/reducing the code while preserving the error.
 
Incident on 2021-02-02 13:52 UTC
 
@cmb Ah, I can ssh directly. I was trying to use jump.php.net, my bad
 
Incident on 2021-02-02 13:52 UTC ・ API Requests has Partial Outage
 
2:06 PM
@Crell Well, wasn't it you who did that? ^^
Can someone implement blame for the wiki? :P
 
@NikiC Thanks, I'll take care of that.
 
@IluTov Yes, because it wasn't a real part of an interface. :-P I'm fine including it, though.
 
@Crell If accessors land before 8.1 we can include it in the interface :)
 
Whee!
As far as tryFrom(), my thinking is that if you're using tryFrom(), you want as many errors as possible to fold to "null because I don't care." That means any int or string that is invalid will result in null, even if it's off-type. An array or object or float or something can still type error, because it has no hope of being right.
 
I mean, even if it lands afterwards we can add it without BC breaks because you can't implement the interface manually anyway.
@Crell I think this is a similar discussion as is_list vs array_is_list. I don't care too much but I think passing an array to tryFrom should probably still type error.
 
2:17 PM
So we agree.
 
@Crell So, the current behavior is: Passing int to a string enum will convert to string, passing strings to an int enum will attempt converting to int or type error. Would you error or not for the latter case?
 
@IluTov btw, we should also have an internal API for creating an enum
I mean, not creating but declaring
 
@NikiC Yeah. I wasn't sure if this is needed for the RFC or something we can just improve under the hood later on.
 
@IluTov I'd go for using an int|string argument and then TypeError (or return null) if the type doesn't match
 
@NikiC Works for me. @Crell?
 
2:27 PM
IMO passing a non-int|string can throw a TypeError. Anything else either works or null.
 
@Crell non-int|string will throw TypeError under strict_types, otherwise behave as usual
 
Minor Service Outage
All issues have been resolved!
 
Or that, sure. I mean, passing non-int|string should behave like any other "you passed the wrong type, dummy" situation.
Nothing special.
But any int|string either works or null.
 
@NikiC Begs the question, is passing strings to int enums under strict_type mode still ok?
 
@IluTov yes
The argument is int|string, so that's always okay
(For tryFrom that is)
 
2:31 PM
@NikiC Ok, so there will be some type coercion then even in strict_type mode.
Because we'll need to look up the case by key as int, even if you passed a string (for int enums, that is, and vice versa).
 
Not sure I get what you mean
You'd just look up the case by whatever value you got. If you get an int but it's a string enum, then the lookup will always fail
 
@NikiC With strict types you'd expect this to fail 3v4l.org/WIluI/rfc#output Without the traditional behavior would convert it to 0 and thus work. Unless you'd also want '0' to fail.
 
@IluTov Ah, I see
 
Hi, quick jump here (offline day)
 
Hm ... I have no idea
I guess it would be weird if from('0') didn't work with weak types
 
2:40 PM
@GabrielCaruso I think soap fix is mising in 8.0.2
 
@RemiCollet Shit, I missed that one. I saw the improved fixed, but not that one. You are talking about bugs.php.net/bug.php?id=80672, right?
 
Yes
 
How do we do in this case? Delete the tag? And remove the tarballs from distributions?
Thanks for spotting that, btw
 
@NikiC Yeah I think so too. We could only coerce without strict types but then why not just type error like we do now if the check always fails anyway?
 
@GabrielCaruso yes, delete the tag and upload the new tarball
(no other way for GA version)
 
2:44 PM
Okay, I'll start a sequence of 3 meetings in the company, I'll try to escape one of them and fix it. I'm in the UTC-3 timezone, so apologies for that
 
@GabrielCaruso no problem, only people doing nothing never do mistake ;)
 
Do we have anywhere else in PHP/stdlib now that has int|string? What does it do?
 
And QA is there for such case ;)
 
@RemiCollet 🙏🏻🙏🏻🙏🏻
 
@cmb ping, see above (about 8.0.2 broken tarball, don't build it for Windows ;)
 
cmb
2:48 PM
Yep, already seen that. Thanks for noticing that issue!
 
@GabrielCarusomy mistake, I only send my email to you.... please send your answer again to all RMS to avoid bad build
 
@Crell grep Z_PARAM_STR_OR_LONG
 
My checkout is only about 4 months old...
 
@SebastianBergmann the zend extension api has been pretty stable since then ... so making it work, not very much effort ... testing though, rather a lot of effort and not really something I'm interested in doing ... to be honest 5.3 is so far in the past I wouldn't feel qualified to test it today, I've not looked at it's source code in ... forever ...
plus, even if I wanted to test, I don't think I could, practically ... in the sense that I don't have access to any software with which I'm intimately familiar that would reliably run unmodified on 5.3 ...
 
I have completely forgotten PHP 5 internals...
Or maybe not forgotten, but suppressed the horror :)
 
3:01 PM
Let's force-feed Nikita some zval***
 
@bwoebi zval****
 
shudders
 
@NikiC I think quadruple indiections were really rare though… but triple indirections were to be found often enough :-D
 
@kelunik I sent a mail to the list
@kelunik I think I get why you don't just say that suspend returns to parent, but I don't get why special-case schedulers, rather than allowing fiber-to-fiber transfer
 
If NG hadn't happened, some of us may have lost our minds by now ... just sayin ...
 
3:13 PM
@NikiC My point was more "is there an existing convention or pattern we can just go with."
 
@Crell I mean, the pattern exists, but I don't think anything has quite the constraints of this situation
Where it's int|string but really "int or string only depending on the enum type"
 
Hey guys
any reason this wouldnt be sending the files to the correct directory
the directory structurs is essentially moving back to toplevel and then into the books directory to store it there
however it isn't uploading the files for some reason
the full upload is
 
@NikiC I guess I don't have any especially strong feelings on the matter beyond "principle of least surprise."
 
@JoeWatkins Thanks for the reply.
 
3:35 PM
@Crell Just gotta figure out what the least surprising is then...
 
My gut feeling (absent data) would probably be weak mode, '0' is OK. Strict mode it's not. But I could also see "but it's typed to allow strings!" as a response.
Too bad we can't just have it type differently depending on the enum type it's on without breaking the interface contract.
 
@Crell Heh, that's easy to do. You just need to drop enums until BackedEnum<int> is supported!
 
The obvious answer, of course... How's that coming? :-)
 
@Crell :P
 
after checking here and changing the file structure to allow the target directory to be within the same directory of the script I can see its the move_uploaded_file.
anybody able to tell me if I am working with this wrongly?
 
4:01 PM
@Kwsswart please use pastebin or gist or something.
Do not post text walls, it is disruptive for other users.
 
Ok sorry hre is the dpaste of the code dpaste.com/5BFEZKV8L
 
Is there a GC_ADDREF helper for incrementing a HashTable safely (not immutable)? I can't seem to find one.
 
@LeviMorrison GC_TRY_ADDREF
 
Thanks!
@NikiC I have a sigsegv in .get_properties_for. It seems to be because an array I am returning is from an immutable array, and then var_dump does zend_array_destroy instead of zend_hash_destroy, I think.
Aside from using a custom destructor or duplicating the array, is there something else I should be doing?
s/immutable/persistent/g
 
4:19 PM
@LeviMorrison Where does the persistent array come from?
 
$ht = [];

$it = new Spl\ForwardArrayIterator($ht);

var_dump($it);
foreach ($it as $key => $value) {
    var_export([$key => $value]);
    echo "\n";
}
var_dump($it);
The persistent array is a value in the var_dump'd array
Basically ['inner' => $ht, /* ... */] where $ht is the persistent one.
 
@LeviMorrison But where does it come from?
Generally persistent arrays (or anything persistent really) shouldn't get exposed to PHP
 
Well, I thought it was coming through the constructor, but I guess it could be coming from my initialization code in .create_obj, which uses zend_empty_array. I'll check.
ZEND_METHOD(Spl_ForwardArrayIterator, __construct)
{
        zval *array;
        ZEND_PARSE_PARAMETERS_START(1, 1)
                Z_PARAM_ARRAY(array)
        ZEND_PARSE_PARAMETERS_END();

        ZVAL_DEREF(array);

        ForwardArrayIterator *iterator = ArrayIterator_from_obj(Z_OBJ_P(ZEND_THIS));

        iterator->ht = Z_ARR_P(array);
        GC_TRY_ADDREF(iterator->ht);

        ForwardArrayIterator_rewind(iterator);
}
static zend_object *spl_ForwardArrayIterator_new(zend_class_entry *class_type)
{
        zend_class_entry *ce = spl_ce_ForwardArrayIterator;
        ZEND_ASSERT(class_type == ce);

        ForwardArrayIterator *iterator =
                zend_object_alloc(sizeof(ForwardArrayIterator), ce);

        zend_object_std_init(&iterator->std, ce);

        iterator->std.handlers = &spl_handler_ForwardArrayIterator;

        /* Initialize the inner array to the empty array, then call rewind.
         * This ensures a consistent object.
In this case the constructor isn't being bypassed, so I would be surprised if it's the empty array.
I guess since constructors can be bypassed I should just dup the array on .get_properties_for?
Or probably something like ZVAL_COPY_OR_DUP except for the ht instead of zval.
 
4:34 PM
@LeviMorrison returning zend_empty_array should be fine
As it's immutable
That shouldn't cause issues
@LeviMorrison the DEREF there isn't necessary
 
Program received signal SIGSEGV, Segmentation fault.
0x0000565089091b52 in zend_gc_delref (p=0x56508991ff80 <zend_empty_array>)
    at /usr/local/src/php/Zend/zend_types.h:1174
1174		return --(p->refcount);
(gdb) bt
#0  0x0000565089091b52 in zend_gc_delref (p=0x56508991ff80 <zend_empty_array>)
    at /usr/local/src/php/Zend/zend_types.h:1174
#1  0x00005650890923bd in i_zval_ptr_dtor (zval_ptr=0x7fa9d526e1c0)
    at /usr/local/src/php/Zend/zend_variables.h:43
#2  0x00005650890978a5 in zend_array_destroy (ht=0x7fa9d5259240)
Hmm. I wonder why it's only the 2nd var_dump. Maybe my issue is something else. EDIT: nvm, it's every var_dump, just got lost in output.
The issue is pretty clear: zend_gc_delref is being called on zend_empty_array.
i_zval_ptr_dtor, called from zend_array_destroy, doesn't check for immutable arrays?
@NikiC It comes from the empty array literal in the script: chat.stackoverflow.com/transcript/message/51514909#51514909
If I use something other than an empty array, like [1], then I don't have issues.
 
@LeviMorrison Possibly wrong zval flags?
ZVAL_ARR assumes a non-immutable array
That's probably something that should get asserted...
 
What should I use instead?
 
@LeviMorrison That's a good question
 
4:49 PM
It doesn't look like there's a macro to assign a zend_array to a zval that works for mutable and immutable
That's annoying
@LeviMorrison For now just manually assign IS_ARRAY to Z_TYPE_INFO if it's immutable ... but we need to do something about this more generally
 
Morning all
Would there be any interest in a proposal to allow spread/vararg operator in list array destructor?
[
    'foo' => $foo
    ...$rest
] = [
    'foo' => 1,
    'bar' => true,
    'baz' => 3.14,
    123,
    'string'
];
Resulting in...
var_dump($foo, $rest);
int(1)
array(4) {
  ["bar"]=>
  bool(true)
  ["baz"]=>
  float(3.14)
  [0]=>
  int(123)
  [1]=>
  string(6) "string"
}
Would it make sense?
 
@NikiC Basically, if it's immutable use IS_ARRAY, otherwise IS_ARRAY_EX?
 
@LeviMorrison yes
 
Would changing ZVAL_ARR to just do this be horrible?
 
Or another thing would it make sense to add question mark to silent warning of undefined array key on list array destructor?
['foo' ?=> $foo] = ['bar' => 123];
var_dump($foo); // null
or any other way to silent warnings like this
 
5:06 PM
@Crell I think the current from behavior is the most optimal. Strict mode will only accept the given type of the backed enum, non strict mode will coerce if possible and otherwise type error. Unless you object I say we stick with that.
 
Look good? My tests pass locally, so I'm hopeful, but maybe I don't have enough tests.
Also, they previously passed on Mac without handling immutable arrays. I bet [] isn't an immutable array on mac or something weird and I don't feel like investigating...
 
5:24 PM
Hey folks, if any of you have some experience with wordpress and can help me I will appreciate it!
https://stackoverflow.com/questions/66014436/filter-woocommerce-related-products-by-polylang-language
 
@IluTov Works for me. Do you want to clarify in the RFC or shall I?
 
@Crell You, please :D
 
5:45 PM
@ircmaxell someone ripped off your DI video :| youtube.com/watch?v=tW6UHD81SG0
like the first half is almost word for word
 
6:03 PM
Sigh...
@Tiffany thanks for pinging me on it
they say imitation is the highest form of flattery
 
@Crell You can manually check for strict_mode... not sure @NikiC would like that horror from what he told me last time I brought it up
 
6:23 PM
@GabrielCaruso How are you feeling about the release? Did you want 8.0.3 as well, or shall I plan on taking it up?
((build looks great btw))
 
6:42 PM
Were there any major security enhancements with PHP 8 or were those all made with patches? I was presenting the new features to my team and someone asked me about security enhancements, I told them those are made in between versions whenever they come up but idk if that was right
 
hi
can someone help
i need a regex that match everything except -\d{1,2}
i tired .*(?<!-\d{1,2})$
but not work
any idea
 
6:56 PM
I'm confused that a mail I sent to internals (tried twice) doesn't appear there
what's the culprit?
oh: ezmlm-reject: fatal: Sorry, I don't accept messages larger than 30000 bytes (#5.2.3) … should've checked spam
 
@Sara If you could take it, I'd appreciate. I'm in Brazil right now in a middle of a travel ban between the Netherlands and Brazil, so if I could skip the next release, that would help me a lot :)
 
Not everything there is accurate, but may still be useful
 
@NikiC Awesome thanks
 
Good
 
7:14 PM
Add a note for key types may not be honored. ・ Arrays related ・ #80698
 
^ #E_NO
]
wow epic fail
leaving it there
 
array_map no longer passes by reference ・ Scripting Engine problem ・ #80699
 
@Sara github.com/sgolemon/php-release/issues/10 just in case you don't get the notification
 
7:33 PM
is NEWS for PHP-8.0 updated at some later point? i pushed my fix to 8.0 and master now going along with how other commits did thiss recently and i havent seen NEWS updates
 
8:08 PM
@beberlei you need to update it manually
 
8:29 PM
I tried understanding the error handling in SOAP, as it uses a bunch of E_ERROR, yeah gonna leave it as is
 
@GabrielCaruso Of course. Happy to take it. Just wasn't sure if you were still asking for practice! :)
@GabrielCaruso What sort of output do you get when you try to run git submodule init and update?
 
8:46 PM
@NikiC Updated the RFC, I hope I didn't forget something.
 
9:33 PM
@PeeHaa @DaveRandom Started a new game of RimWorld last night to stream. I'm going to start over again tonight I believe but... note my crash site survivors. i.imgur.com/pCZwWO0.png
That was a little blurry imgur.com/a/8ylTld6 and imgur.com/a/sSOk4ki
 
Why am I dead already? :P
:D
ah I am planting shit later. k
Thanks for keeping me alive
 
You were sleeping.
I kept finding your character cloudwatching
Yeah, then you were running off with some "leaf."
Last night's stream was probably dreadfully boring tbh, I was relearning the actions. Reason for starting over tonight.
 
I have to relearn it every single time I play it :D
 
It had been a year in my case.
 
10:41 PM
I had forgotten just how much of an excellent album Adele/19 really is
fuck all the hype, she really is amazing
 
11:01 PM
0
Q: Foreach with waiting

TiagoGood evening everyone. I'm doing a foreach, and I curl it, getting json data. The problem is that the curl, sometimes brings the radio feedback and sometimes takes about 30 seconds. How do I get foreach to wait for the curl to return to pass the next parameter? Code example: foreach ($rsV as $row...

 
it always will wait?
unless there is a timeout
CURLOPT_TIMEOUT or CURLOPT_TIMEOUT_MS
 
11:17 PM
@Tiago As the comment mentions, curl is blocking. If the execution halts for 30 seconds whatever server you're talking to most likely doesn't respond and then times out. Each iteration of the foreach will make the request, wait, log on error or decode (and discard) on success. Do you see any errors? What does logr do?
 
I am gonna skip a whole bunch of debugging steps here and tell you to google "async php"
though also be aware that you are entering something that might look a bit scary, I promise it isn't :-)
 
rimshot.gif
 
lol
 
Evening folks
 
11:23 PM
Install Guzzle and use its async features. :-)
 
Random question: so in PHP 8, final private for classes gives an error, how does it behave inside traits?
 
@Crell definitely this
for the person asking that question, this is the best possible answer
@Tiffany I haven't looked at the code for quite a long time, but it certainly used to be the case that the way the basic def of a function is processed from a trait is the same as if it was defined the class
 
@Tiffany Same, apparently. 3v4l.org/VB4eS
 
the function structure itself is basically just copypastas and revalidated
and then all the name resolution stuff happens after
 
Actually just a warning, not an error.
 
11:27 PM
oh huh
 
@IluTov thanks :P
 
#rubberducky :-P
 
James Veitch would be an awesome programmer
 
still counting, has been going for over 30 mins just on enumeration
that creation date tho :-P
also wtf is the deal with the 2:1 file:folder ratio
 
@DaveRandom Two files per folder? :P
 
11:38 PM
inorite
 
Also good night.
 

« first day (3762 days earlier)      last day (1177 days later) »