History log of /PHP-8.1/ext/pdo/pdo_stmt.c (Results 1 – 25 of 534)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 0f428ae2 02-Jun-2022 David Carlier

Merge branch 'PHP-8.0' into PHP-8.1


# df52903e 25-May-2022 Yurun

Closes GH-8626: Fix PDOStatement->execute() failed.
Then execute successfully, errorInfo() information is incorrect

Revision tags: php-8.1.7RC1, php-8.1.4RC1, php-8.1.3, php-8.1.2RC1, php-8.1.0, php-7.3.33, php-7.3.32, php-7.3.31, php-7.3.30
# 8a26cbe0 22-Jul-2021 Nikita Popov

Remove unnecessary PDORow get_method / get_class_name handlers

These implement the default behavior, but badly.

# 570d9b63 20-Jul-2021 Joe Watkins

Not serializable flag permeation

Revision tags: php-7.3.29
# 9d2a466c 09-Jun-2021 Nikita Popov

Remove explicit assignments of zend_objects_destroy_object

This is the default handler, no need to set it explicitly. This
makes it easier to see which objects really have a custom dtor_

Remove explicit assignments of zend_objects_destroy_object

This is the default handler, no need to set it explicitly. This
makes it easier to see which objects really have a custom dtor_obj.

show more ...

# 91eb201f 31-May-2021 Nikita Popov

Allow initializing assignment to PDOStatement::$queryString

If the object is not created through PDO::prepare(), e.g. in a
mock scenario, it should still be possible to initialize the

Allow initializing assignment to PDOStatement::$queryString

If the object is not created through PDO::prepare(), e.g. in a
mock scenario, it should still be possible to initialize the
$queryString property.

See bug #81084.

show more ...

# 01b3fc03 06-May-2021 KsaR

Update http->https in license (#6945)

1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https.
2. Update few license 3.0 to 3.01 as

Update http->https in license (#6945)

1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https.
2. Update few license 3.0 to 3.01 as 3.0 states "php 5.1.1, 4.1.1, and earlier".
3. In some license comments is "at through the world-wide-web" while most is without "at", so deleted.
4. fixed indentation in some files before |

show more ...

# 7df78676 05-May-2021 Máté Kocsis

Merge branch 'PHP-8.0'

* Fix the signature of PDOStatement::fetchObject()


# 068c8db2 04-May-2021 Máté Kocsis

Fix the signature of PDOStatement::fetchObject()

The ?array $ctorArgs = null parameter is changed to array $constructorArgs = [], and an additional memory leak revealed by the new test case

Fix the signature of PDOStatement::fetchObject()

The ?array $ctorArgs = null parameter is changed to array $constructorArgs = [], and an additional memory leak revealed by the new test case is fixed.

Closes GH-6937

Co-Authored-By: Nikita Popov <nikita.ppv@gmail.com>

show more ...

Revision tags: php-7.3.28, php-7.3.27, php-7.3.26, php-7.3.26RC1
# 3e6b4479 07-Dec-2020 Nikita Popov

Partially deprecate Serializable

If Serializable is implemented, require that __serialize() and
__unserialize() are implemented as well, else issue a deprecation
warning.

Al

Partially deprecate Serializable

If Serializable is implemented, require that __serialize() and
__unserialize() are implemented as well, else issue a deprecation
warning.

Also deprecate use of PDO::FETCH_SERIALIZE.

RFC: https://wiki.php.net/rfc/phase_out_serializable

Closes GH-6494.

show more ...

# 0a779040 25-Apr-2021 Kamil Tekiela

Add test case for errorCode()

# 3292b976 24-Apr-2021 Kamil Tekiela

Add ZEND_ASSERT to stmt->errorCode

Revision tags: php-7.3.25, php-7.3.25RC1, php-7.3.24, php-7.3.24RC1
# 5caaf40b 29-Sep-2020 George Peter Banyard

Introduce pseudo-keyword ZEND_FALLTHROUGH

And use it instead of comments

# f15d5279 17-Mar-2021 Máté Kocsis

Declare PDORow::queryString property

Relates GH-6742

# 262744ff 12-Mar-2021 George Peter Banyard

Boolify pdo_stmt_describe_columns()

# 7e3840df 15-Mar-2021 Nikita Popov

Assert that stmt is set in PDORow

# f7751f2d 15-Mar-2021 Nikita Popov

Use zend_objects_not_comparable in PDO

# 1954e597 26-Jan-2021 Máté Kocsis

Add support for generating class entries from stubs

Closes GH-6289

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>

# ef36de13 19-Jan-2021 George Peter Banyard

Use zend_string_equals() in PDO

Closes GH-6623

# 7aa00369 07-Jan-2021 Nikita Popov

Switch bound_param_map to zend_string

# 01c8fe8f 23-Dec-2020 George Peter Banyard

Convert strcmp() usage to zend_string_equals_literal()

# caa71003 17-Dec-2020 Nikita Popov

Rewrite PDO result binding

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, allo

Rewrite PDO result binding

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 ;)

show more ...

# 737195c3 21-Dec-2020 Nikita Popov

PDO: Honor ATTR_STRINGIFY_FETCHES for booleans

Of the important PDO drivers, this affects only PDO PgSQL, as
both MySQL and SQLite do not return native boolean types.

# c7cccc1c 18-Dec-2020 Nikita Popov

Fix leak

# 7904a087 18-Dec-2020 Nikita Popov

Back memory stream by a zend_string

This allows reusing an existing zend_string inside a memory stream
without reallocating. For non-readonly streams, the string will
only get separa

Back memory stream by a zend_string

This allows reusing an existing zend_string inside a memory stream
without reallocating. For non-readonly streams, the string will
only get separated on write.

show more ...

12345678910>>...22