« first day (4370 days earlier)      last day (585 days later) » 

JRL
7:16 AM
i just realized as i was scoffing at the "25 years in PHP" note, that it was actually 21 years ago this month that I started in PHP... holy shit, it doesn't feel like it was that long ago
 
 
4 hours later…
10:50 AM
Happy Monday All
 
11:29 AM
Hopefully a happy flight for me :P
 
12:06 PM
Morning All
 
12:34 PM
I cannot find anything related to the original discussions about ext/filter design. I found some info on Illia's blog and some old documentation from Pierre in archive.org, but none of them explain the design decisions around the filters.
The extension was designed when magic quotes and register globals was a thing. I think the design decisions were influenced by what we knew about security back then.
 
12:56 PM
Oh god
I just think I found a horrendous bug in custom SessionHandlers
Oh no, actually it's OK
I was scared for a second there
 
@Girgias why are you drawn to looking in such cursed places?
 
@Girgias LOL! I know those moments of panic very well.
 
@Danack Because I'm a masochist and I've decided that one of my project for October is to refactor ext-session
 
....too late to tempt you with something else?
ext-session 'works' well enough for most people. The stuff that would be nice to have in addition to it can all be done in userland.
 
@Danack You can always say it, I've got a list
@Danack I've been fixing bugs in it, and the internal design is just wild, that's mainly what I'm doing atm
 
1:12 PM
@Girgias yeah. That's the issue. It was touched a lot by Yasuo who is a little bit bonkers.
 
I've gathered that much
 
And so there will be edge-cases/bugs that when touched will annoy people, no matter whether the behaviour was right or wrong before.
 
I mean those were clear bugs that needed to be fixed
Tbf I'm doing baby steps :')
 
@Girgias You had been working on function (and other) autoloading before...how was that going? I seem to remember there being a detail of something that needed to be thought about, but I can't remember exactly what.
 
@Danack The implementation is more or less done, just waiting for your words :p
There is one question up to debate which is should unqualified functions trigger the autoloading or not
But that's a simple true/false switch
 
1:23 PM
yeah, that was it. and people have opinions...
and I have a somewhat questionable feature request....
 
Depends what it is and how feasible it is
 
I'll say it in DM so nobody punches me.
 
 
1 hour later…
2:37 PM
@cmb Because it's a bug.
It's a design one, at that.
However, it's been a long time.
Modules are supposed to be able to be dynamically sized, but this line prevents that:
if ((module_ptr = zend_hash_add_mem(&module_registry, lcname, module, sizeof(zend_module_entry))) == NULL) {
Additionally, there's no guarantee that when copying a dynamically sized module, that it would actually be safe to do a bitwise copy.
All this module and extension code is junk, IMO: nobody who understood it evolved it logically, or documented use cases, and they became broken at some point.
If we want to revert this PR for PHP 8.x then I'm fine with that, but please add code comments and such. In 9.0 we need to straighten out this garbage.
cc @ArnaudLeBlanc
Also, I think detecting the double-load makes sense even if it's reverted.
 
 
3 hours later…
JRL
5:53 PM
@LeviMorrison is module a synonym for extension in php-src?
 
@JRL Yes, but not to be confused with zend_extension.
 
JRL
right, zend_extension is special, that much i remember
 
> Modules are supposed to be able to be dynamically sized
Because of zend_module_entry.size?
 
Yeah, which has been broken for a long time.
But since it's supposed to be dynamically sized, you can't really just expect to memcpy its bits around, so that's why I removed the copy altogether.
Also, it fits the user expectation that the module variable you use in your extension is actually the one used by the engine.
 
JRL
6:12 PM
when i eventually request voting karma/access, is that something that should be done through the ML?
 
 
2 hours later…
7:43 PM
@Danack Whistler's brother.
 
 
1 hour later…
JRL
9:06 PM
huh....
i think i might have discovered a bug in wolframalpha?
 
9:36 PM
famous last words
 
JRL
yeah, it wasn't a bug in wolframalpha, it's a not-exactly-a-bug in ext-decimal that is... very annoying behavior
which is at its core annoying behavior in mpdec
which is messing up with my extension of modulo
so that it can handle things like 4 % Pi
and return the full decimal modulo
which is SUPER NECESSARY for things like tan(), cos(), and sin() algorithms
sometimes i really, really hate this library
 

« first day (4370 days earlier)      last day (585 days later) »