]> granicus.if.org Git - php/commitdiff
MFH: Fixed Bug #26927 (preg_quote() does not escape \0).
authorIlia Alshanetsky <iliaa@php.net>
Fri, 16 Jan 2004 02:31:26 +0000 (02:31 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 16 Jan 2004 02:31:26 +0000 (02:31 +0000)
NEWS
ext/pcre/php_pcre.c

diff --git a/NEWS b/NEWS
index d3abf874cba9ac5962bfc11394bebd8a6de14802..b3b56bfd7be4d8dd5e56d1d176f42795a7eb8623 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 PHP 4                                                                      NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? Jan 2004, Version 4.3.5
+- Fixed Bug #26927 (preg_quote() does not escape \0). (Ilia)
 - Fixed bug #26909 (crash in imap_mime_header_decode() when no encoding is 
   used). (Ilia)
 - Fixed bug #26878 (problem with multiple references to the same variable 
index 2cd9f5585ce107514d82eb745a79a0854287c49e..f72beee58304a381f978f035ca2ea9e7a0d12dbf 100644 (file)
@@ -1391,6 +1391,11 @@ PHP_FUNCTION(preg_quote)
                                *q++ = c;
                                break;
 
+                       case '\0':
+                               *q++ = '\\';
+                               *q++ = '0';
+                               break;
+
                        default:
                                if (quote_delim && c == delim_char)
                                        *q++ = '\\';