mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
caa710037e
Instead of requiring the type to be determined in advance by the describer function and then requiring get_col to return a buffer of appropriate type, allow get_col to return an arbitrary zval. See UPGRADING.INTERNALS for a more detailed description of the change. This makes the result fetching simpler, more efficient and more flexible. The general possibility already existed via the special PDO_PARAM_ZVAL type, but the usage was very inconvenient and/or inefficient. Now it's possible to easily implement behavior like "return int if it fits, otherwise string" and to avoid any kind of complex management of temporary buffers. This also fixes bug #40913 (our second highest voted bug of all time, for some reason). PARAM_LOB result bindings will now consistently return a stream resource, independently of the used database driver. I've tried my best to update all PDO drivers for this change, but some of the changes may be broken, as I cannot test or even build some of these drivers (in particular PDO dblib and PDO oci). Fixes are appreciated -- a working CI setup would be even more appreciated ;) |
||
---|---|---|
.. | ||
tests | ||
config.m4 | ||
config.w32 | ||
CREDITS | ||
Makefile.frag | ||
Makefile.frag.w32 | ||
pdo_arginfo.h | ||
pdo_dbh_arginfo.h | ||
pdo_dbh.c | ||
pdo_dbh.stub.php | ||
pdo_sql_parser.re | ||
pdo_sqlstate.c | ||
pdo_stmt_arginfo.h | ||
pdo_stmt.c | ||
pdo_stmt.stub.php | ||
pdo.c | ||
pdo.stub.php | ||
php_pdo_driver.h | ||
php_pdo_error.h | ||
php_pdo_int.h | ||
php_pdo.h |