]> granicus.if.org Git - php/commitdiff
Addded missing NEWS/UPGRADING entries for PDO "??" escape
authorMatteo Beccati <mbeccati@php.net>
Thu, 25 Jul 2019 14:28:42 +0000 (16:28 +0200)
committerMatteo Beccati <mbeccati@php.net>
Thu, 25 Jul 2019 14:30:28 +0000 (16:30 +0200)
NEWS
UPGRADING

diff --git a/NEWS b/NEWS
index fea0595584a058a9a36e0ad376d8ac75e974a291..737f48bd743de1d65b0f45882a26c428791b0284 100644 (file)
--- 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)
 
index 3765c39639e381bd1dfe5c6f15500108197aee0e..c42d71d66b792026619a59acef3c90a0d4b90c76 100644 (file)
--- 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