andrei Fri Feb 17 21:18:09 2006 UTC Modified files: (Branch: PHP_5_1) /php-src/ext/pcre php_pcre.c Log: MFH. http://cvs.php.net/viewcvs.cgi/php-src/ext/pcre/php_pcre.c?r1=1.168.2.6&r2=1.168.2.7&diff_format=u Index: php-src/ext/pcre/php_pcre.c diff -u php-src/ext/pcre/php_pcre.c:1.168.2.6 php-src/ext/pcre/php_pcre.c:1.168.2.7 --- php-src/ext/pcre/php_pcre.c:1.168.2.6 Mon Feb 6 19:02:53 2006 +++ php-src/ext/pcre/php_pcre.c Fri Feb 17 21:18:09 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pcre.c,v 1.168.2.6 2006/02/06 19:02:53 andrei Exp $ */ +/* $Id: php_pcre.c,v 1.168.2.7 2006/02/17 21:18:09 andrei Exp $ */ /* * TODO @@ -1462,7 +1462,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++) { @@ -1494,6 +1494,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