« first day (5133 days earlier)      last day (34 days later) » 

03:21
I'm saying, removing items makes no sense php.net/manual/en/splobjectstorage.removeallexcept.php
 
6 hours later…
09:40
Oh, lovely. That one doesn't do what its name says it does.
 
5 hours later…
14:24
Yeah, that's the least of its problems
Why can't we just allow objects in array keys?
Can just be stored internally using the object id or whatever
15:02
It's never "just".
15:26
Object IDs can be reused
Also how is it "just"?
Liek do some name manging and then have it be a string?
Brilliant now you can access any object from everywhere
 
3 hours later…
18:17
@QuolonelQuestions Genious
@QuolonelQuestions You'd have to change the Bucket structure and replace the string&h fields with a zval, and then probably put the hash in the Z_EXTRA field of the zval. That way you could keep the bucket the same size, but it would be a major BC break for internal code and especially third party extensions
So, other than the inconvenience for extensions, you don't suppose it would be such a big task?
Put it on the PHP 9 list TBH
I think it'll be a very big task, the reason I mentioned extensions is because I imagine that it would affect both first and third party extensions, which combined is a lot of code
 
2 hours later…
20:28
There was some work on this. github.com/php/php-src/pull/6588 I would be happy seeing it in the future.
20:49
Based Nikita
How does __DIR__ actually work (or not)? In the trivial case it gives you the directory of the current source file, but there are certainly cases where it does not. For example, PHPUnit has undocumented test functionality for PHPT format, similar to PHP's own tests, with support for a FILE_EXTERNAL section.
If __DIR__ is used by the file pointed to by FILE_EXTERNAL, it seems to resolve to the directory of the test including it, rather than the external source itself (probably due to eval? not sure how PHPUnit implements this)

« first day (5133 days earlier)      last day (34 days later) »