From: Matteo Beccati Date: Thu, 25 Jul 2019 14:28:42 +0000 (+0200) Subject: Addded missing NEWS/UPGRADING entries for PDO "??" escape X-Git-Tag: php-7.4.0beta2~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d3d2b9827465ad44582e0f40fe883db37ba6df3;p=php Addded missing NEWS/UPGRADING entries for PDO "??" escape --- diff --git a/NEWS b/NEWS index fea0595584..737f48bd74 100644 --- a/NEWS +++ b/NEWS @@ -3,9 +3,6 @@ PHP NEWS ?? ??? ????, PHP 7.4.0beta2 -25 Jul 2019, PHP 7.4.0beta1 - - 25 Jul 2019, PHP 7.4.0beta1 - Core: @@ -36,6 +33,10 @@ PHP NEWS . Fixed bug #78271 (Invalid result of if-else). (Nikita) . Added new INI directive opcache.cache_id (Windows only). (cmb) +- PDO: + . Implemented FR #71885 (Allow escaping question mark placeholders). + https://wiki.php.net/rfc/pdo_escape_placeholders (Matteo) + - Recode: . Unbundled the recode extension. (cmb) diff --git a/UPGRADING b/UPGRADING index 3765c39639..c42d71d66b 100644 --- a/UPGRADING +++ b/UPGRADING @@ -555,6 +555,13 @@ PHP 7.4 UPGRADE NOTES . The --disable-opcache-file|--enable-opcache-file configure options have been removed in favor of the opcache.file_cache INI directive. +- PDO: + . It is now possibile to escape question marks in SQL queries to avoid them + being interpreted as parameter placeholders. Writing "??" allows to send + a single question mark to the database and e.g. use the PostgreSQL JSON key + exists "?" operator. For more details see the RFC: + https://wiki.php.net/rfc/pdo_escape_placeholders + - Reflection: . Numeric value of class, property, function and constant modifiers was changed. Don't filter methods and properties through