History log of /PHP-8.2/ext/pdo/pdo_dbh.c (Results 26 – 50 of 402)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 8effbd1c 12-Apr-2021 Nikita Popov

PDO: Respect connection transaction state for dtor rollback

As mentioned in bug #80949, if a transaction is implicitly
committed, then PDO may still issue a ROLLBACK when the PDO
obj

PDO: Respect connection transaction state for dtor rollback

As mentioned in bug #80949, if a transaction is implicitly
committed, then PDO may still issue a ROLLBACK when the PDO
object is destroyed, as the transaction is still marked as active
in PDO's (inaccurate) transaction emulation.

Make sure we use the connection transaction state also for that
final ROLLBACK. A caveat here is that the connection might have
been dropped already, which may be the case for some drivers if
construction fails. Make sure we don't crash in that case.

show more ...

# ebaeb93c 15-Mar-2021 George Peter Banyard

Add API to fetch bool value for PDO attribute values

Closes GH-6766

# 32fb9b6f 12-Mar-2021 George Peter Banyard

Validate string is numeric for integer PDO attribute value

# f89f600d 12-Mar-2021 George Peter Banyard

Add comment explaining empty default case

# 6cc0d7c0 12-Mar-2021 George Peter Banyard

Boolify pdo_dbh_attribute_set()

# 3e6940fe 12-Mar-2021 George Peter Banyard

Boolify pdo_hash_methods()

# 262744ff 12-Mar-2021 George Peter Banyard

Boolify pdo_stmt_describe_columns()

# f7751f2d 15-Mar-2021 Nikita Popov

Use zend_objects_not_comparable in PDO

# af56982a 14-Feb-2021 Máté Kocsis

Generate class entries from stubs for oci8, odbc, openssl, pcntl, pdo, pgsql

Closes GH-6691

# a78aea89 18-Jan-2021 George Peter Banyard

Refactor PDO's last inserted ID handler to use and return zend_string

Closes GH-6617

# 94ea8e24 18-Jan-2021 George Peter Banyard

Refactor PDO doer handler to use zend_string

# 3e01f5af 15-Jan-2021 Nikita Popov

Replace zend_bool uses with bool

We're starting to see a mix between uses of zend_bool and bool.
Replace all usages with the standard bool type everywhere.

Of course, zend_bool

Replace zend_bool uses with bool

We're starting to see a mix between uses of zend_bool and bool.
Replace all usages with the standard bool type everywhere.

Of course, zend_bool is retained as an alias.

show more ...

# 63cda0fe 23-Dec-2020 George Peter Banyard

Refactor PDO's quoter handler to return a zend_string

Closes GH-6547

# 1a58611a 24-Dec-2020 George Peter Banyard

Voidify PDO's fetch_error handler

# d04adf60 23-Dec-2020 George Peter Banyard

Boolify PDO's transaction handlers

This includes begin(), commit(), rollBack(), and inTransaction()

# ca5fcb83 23-Dec-2020 George Peter Banyard

Add/expand comments for PDO handlers

# 2d51c203 11-Dec-2020 Nikita Popov

PDO: Store/pass query_string as zend_string

Rather than storing char* + size_t, use a zend_string*. Also
avoid various copies of the query string.

# d6c3b8ba 10-Dec-2020 Nikita Popov

Merge branch 'PHP-8.0'

* PHP-8.0:
Allow drivers to omit error code


# a5527577 10-Dec-2020 Nikita Popov

Allow drivers to omit error code

And thus generate error messages that match what PDO emulation
would generate.

This fixes the error message regression from the previous commit.

# bd555b6c 28-Oct-2020 Nikita Popov

Merge branch 'PHP-8.0'

* PHP-8.0:
Fixed bug #66528


# 39be0df2 28-Oct-2020 Nikita Popov

Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
Fixed bug #66528


# 68dcaa29 28-Oct-2020 Nikita Popov

Fixed bug #66528

Report errors in commit, rollback and autocommit handlers.

# ab0ec3f2 28-Oct-2020 Nikita Popov

Check for null dbh methods in get_gc

Methods may not be set at the point where get_gc is called. Fixes
a segfault in Laravel.

# 18d373e8 26-Oct-2020 Nikita Popov

Merge branch 'PHP-8.0'

* PHP-8.0:
Fix inconsistency in PDO transaction state


# 7b9519a7 20-Oct-2020 Nikita Popov

Fix inconsistency in PDO transaction state

This addresses an issue introduced by #4996 and reported in
https://bugs.php.net/bug.php?id=80260.

Now that PDO::inTransaction() repor

Fix inconsistency in PDO transaction state

This addresses an issue introduced by #4996 and reported in
https://bugs.php.net/bug.php?id=80260.

Now that PDO::inTransaction() reports the real transaction state
of the connection, there may be a mismatch with PDOs internal
transaction state (in_tcx). This is compounded by the fact that
MySQL performs implicit commits for DDL queries.

This patch fixes the issue by making beginTransaction/commit/rollBack
work on the real transaction state provided by the driver as well
(or falling back to in_tcx if the driver does not support it).

This does mean that writing something like

$pdo->beginTransaction();
$pdo->exec('CREATE DATABASE ...');
$pdo->rollBack(); // <- illegal

will now result in an error, because the CREATE DATABASE already
committed the transaction. I believe this behavior is both correct
and desired -- otherwise, there is no indication that the code did
not behave correctly and the rollBack() was effectively ignored.
However, this is also a BC break.

Closes GH-6355.

show more ...

12345678910>>...17