Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 30, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

shivammathur and others added 10 commits January 30, 2025 23:14
… zval for uninitialized typed properties

Closes GH-17590.
The length of the string should be set to the truncated length (that was
used to duplicate the input anyway).
* PHP-8.3:
  Fix memory leak in phpdbg calling registered function
  Partially fix GH-17387
* PHP-8.4:
  Fix memory leak in phpdbg calling registered function
  Partially fix GH-17387
This saves 8 bytes on the PDO statement struct.

We change the PGSQL PDO driver API to take a zend_object* instead of a zval* at the same time.
…hTable 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.
@pull pull bot added the ⤵️ pull label Jan 30, 2025
@pull pull bot merged commit 3ff7758 into wudi:master Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants