Re: [PHP-DEV] Use usual semantics for PDO::FETCH_CLASS constructor arguments

2025-01-23 Thread Gina P. Banyard
On Tuesday, 21 January 2025 at 12:36, Kamil Tekiela wrote: > Hi Gina, > > Your proposal makes sense to me. I agree that the behaviour should be > consistent. > If I understand correctly, an associative array currently binds only > to positional arguments. If you make this change, how will it in

Re: [PHP-DEV] Use usual semantics for PDO::FETCH_CLASS constructor arguments

2025-01-21 Thread Kamil Tekiela
Hi Gina, Your proposal makes sense to me. I agree that the behaviour should be consistent. If I understand correctly, an associative array currently binds only to positional arguments. If you make this change, how will it interact with PDO::FETCH_PROPS_LATE? Am I correct in assuming that this will

[PHP-DEV] Use usual semantics for PDO::FETCH_CLASS constructor arguments

2025-01-20 Thread Gina P. Banyard
Hello internals, For the past few weeks I have been refactoring the PDO extension to reduce the complexity of the implementation but also lower the memory requirement of the _pdo_stmt_t struct. And in this process I rediscovered an oddity which prevents removing the usage of the FCI struct (whi