diff --git a/reference/pdo/pdo/getattribute.xml b/reference/pdo/pdo/getattribute.xml index eebbc93d3ae2..02acc2a65c38 100644 --- a/reference/pdo/pdo/getattribute.xml +++ b/reference/pdo/pdo/getattribute.xml @@ -38,18 +38,14 @@ One of the PDO::ATTR_* constants. The generic attributes that apply to database connections are as follows: - PDO::ATTR_AUTOCOMMIT PDO::ATTR_CASE - PDO::ATTR_CLIENT_VERSION - PDO::ATTR_CONNECTION_STATUS + PDO::ATTR_DEFAULT_FETCH_MODE PDO::ATTR_DRIVER_NAME PDO::ATTR_ERRMODE PDO::ATTR_ORACLE_NULLS PDO::ATTR_PERSISTENT - PDO::ATTR_PREFETCH - PDO::ATTR_SERVER_INFO - PDO::ATTR_SERVER_VERSION - PDO::ATTR_TIMEOUT + PDO::ATTR_STATEMENT_CLASS + PDO::ATTR_STRINGIFY_FETCHES diff --git a/reference/pdo/pdo/prepare.xml b/reference/pdo/pdo/prepare.xml index 006de0ced5d2..001010d795a7 100644 --- a/reference/pdo/pdo/prepare.xml +++ b/reference/pdo/pdo/prepare.xml @@ -56,12 +56,12 @@ - The parser used for emulated prepared statements and for - rewriting named or question mark style parameters supports the non standard - backslash escapes for single- and double quotes. That means that terminating - quotes immediately preceded by a backslash are not recognized as such, which - may result in wrong detection of parameters causing the prepared statement to - fail when it is executed. A work-around is to not use emulated prepares for + Before PHP 8.4.0, the parser used for emulated prepared statements and for + rewriting named or question mark style parameters supported the non standard + backslash escapes for single- and double quotes. That meant that terminating + quotes immediately preceded by a backslash were not recognized as such, which + could result in wrong detection of parameters causing the prepared statement to + fail when it was executed. A work-around was to not use emulated prepares for such SQL queries, and to avoid rewriting of parameters by using a parameter style which is natively supported by the driver. @@ -71,6 +71,15 @@ the ?? string will be translated to ? when sending the query to the database. + + As of PHP 8.4.0, PDO uses driver-specific SQL parsers to locate parameter + markers, so that markers appearing inside string literals or comments are + not mistaken for placeholders. The default parser recognizes single- and + double-quoted string literals, as + well as two-dashes and non-nested C-style comments. Individual drivers may + provide a parser that recognizes additional or different syntax; refer to the + driver-specific documentation for details. + &reftitle.parameters; diff --git a/reference/pdo/pdostatement/getattribute.xml b/reference/pdo/pdostatement/getattribute.xml index ea458ce1c6b6..c6cd04a2d185 100644 --- a/reference/pdo/pdostatement/getattribute.xml +++ b/reference/pdo/pdostatement/getattribute.xml @@ -21,6 +21,13 @@ (Firebird and ODBC specific): Get the name of cursor for UPDATE ... WHERE CURRENT OF. + + + Pdo\Pgsql::ATTR_RESULT_MEMORY_SIZE + (PostgreSQL specific, available as of PHP 8.4.0): + Get the amount of memory, in bytes, allocated to the query result. + + Note that driver specific attributes must not be used with other drivers. diff --git a/reference/pdo_firebird/configure.xml b/reference/pdo_firebird/configure.xml index 6ef9611e5c25..653b14eeaf8a 100644 --- a/reference/pdo_firebird/configure.xml +++ b/reference/pdo_firebird/configure.xml @@ -12,6 +12,11 @@ $ ./configure --with-pdo-firebird ]]> + + As of PHP 8.4.0, this extension uses Firebird C++ APIs and therefore + requires a C++ compiler, and must be built against fbclient 3.0 + or higher. + diff --git a/reference/pdo_pgsql/reference.xml b/reference/pdo_pgsql/reference.xml index dfc8d58f81aa..7006801fe634 100644 --- a/reference/pdo_pgsql/reference.xml +++ b/reference/pdo_pgsql/reference.xml @@ -119,6 +119,15 @@ + + + As of PHP 8.4.0, credentials specified in the DSN + (user and password) take priority + over the corresponding arguments passed to the + PDO constructor. In earlier versions, the + PDO constructor arguments took precedence. + + All semicolons in the DSN string are replaced by spaces, because PostgreSQL