andrei Fri Feb 17 21:18:51 2006 UTC
Modified files: (Branch: PHP_4_4)
/php-src/ext/pcre php_pcre.c
Log:
MFH
http://cvs.php.net/viewcvs.cgi/php-src/ext/pcre/php_pcre.c?r1=1.132.2.24.2.2&r2=1.132.2.24.2.3&diff_format=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.132.2.24.2.2
php-src/ext/pcre/php_pcre.c:1.132.2.24.2.3
--- php-src/ext/pcre/php_pcre.c:1.132.2.24.2.2 Sun Jan 1 13:46:55 2006
+++ php-src/ext/pcre/php_pcre.c Fri Feb 17 21:18:51 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.132.2.24.2.2 2006/01/01 13:46:55 sniper Exp $ */
+/* $Id: php_pcre.c,v 1.132.2.24.2.3 2006/02/17 21:18:51 andrei Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1406,7 +1406,7 @@
/* Allocate enough memory so that even if each character
is quoted, we won't run out of room */
- out_str = safe_emalloc(2, Z_STRLEN_PP(in_str_arg), 1);
+ out_str = safe_emalloc(4, Z_STRLEN_PP(in_str_arg), 1);
/* Go through the string and quote necessary characters */
for(p = in_str, q = out_str; p != in_str_end; p++) {
@@ -1438,6 +1438,8 @@
case '\0':
*q++ = '\\';
*q++ = '0';
+ *q++ = '0';
+ *q++ = '0';
break;
default:
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php