1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00
Files
archived-php-src/ext
Gina Peter Banyard 3ff7758bcf ext/pdo: Refactor PDO::FETCH_CLASS to not rely on a FCI and use a HashTable for ctor_arg
To call the constructor we now only store the CE and a HashTable for the arguments.
This reduces the size of the _pdo_stmt_t struct from 320 bytes to 232 bytes.
Moreover, this now means that the constructor argument array follows the usual CUFA semantics.
This change is a BC break, as string keys now act like named arguments.
Moreover, the automatic wrapping of by-value arguments for by-ref parameters has been dropped, and the usual E_WARNING is now emitted in those cases.

The do_fetch() is heavily refactored to simplify the execution flow, which also makes it easier to understand.
Additionally we add a new bitflag in_fetch to prevent modification of the fetch flags by userland when PDO is fetching from the DB.
2025-01-30 18:48:54 +00:00
..
2025-01-29 19:25:05 +09:00
2024-11-17 12:28:12 +00:00
2025-01-17 11:53:13 +00:00
2024-12-06 19:02:22 +01:00
2024-12-20 18:52:43 +01:00
2025-01-30 11:41:00 -04:00
2024-12-18 11:39:06 +00:00
2025-01-03 12:31:13 +01:00
2024-11-10 20:35:04 +00:00
2024-12-06 17:44:01 +01:00
2025-01-19 20:39:27 +01:00
2024-11-27 23:06:34 +01:00
2025-01-29 12:54:23 +01:00
2025-01-15 20:37:19 +00:00
2025-01-26 19:15:36 +00:00
2025-01-28 12:59:31 +01:00
2024-12-30 12:42:24 -04:00
2025-01-24 14:10:12 +00:00
2025-01-09 19:54:52 +01:00
2025-01-19 18:01:52 +00:00
2024-12-27 15:54:37 +01:00
2025-01-21 08:21:27 +01:00