tony2001 Tue Oct 3 21:37:02 2006 UTC
Modified files:
/php-src/ext/pcre php_pcre.c
/php-src/ext/pcre/tests bug26927.phpt
Log:
leaks--
fix test
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.c?r1=1.205&r2=1.206&diff_format=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.205 php-src/ext/pcre/php_pcre.c:1.206
--- php-src/ext/pcre/php_pcre.c:1.205 Tue Oct 3 21:17:29 2006
+++ php-src/ext/pcre/php_pcre.c Tue Oct 3 21:37:02 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.205 2006/10/03 21:17:29 tony2001 Exp $ */
+/* $Id: php_pcre.c,v 1.206 2006/10/03 21:37:02 tony2001 Exp $ */
/* TODO
* php_pcre_replace_impl():
@@ -1768,7 +1768,7 @@
*q = '\0';
/* Reallocate string and return it */
- RETVAL_UTF8_STRINGL(erealloc(out_str, q - out_str + 1), q - out_str, 0);
+ RETVAL_UTF8_STRINGL(erealloc(out_str, q - out_str + 1), q - out_str,
ZSTR_AUTOFREE);
}
/* }}} */
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/tests/bug26927.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/pcre/tests/bug26927.phpt
diff -u php-src/ext/pcre/tests/bug26927.phpt:1.2
php-src/ext/pcre/tests/bug26927.phpt:1.3
--- php-src/ext/pcre/tests/bug26927.phpt:1.2 Mon Feb 20 08:39:38 2006
+++ php-src/ext/pcre/tests/bug26927.phpt Tue Oct 3 21:37:02 2006
@@ -9,3 +9,6 @@
--EXPECT--
int(1)
string(6) "a\000b"
+--UEXPECT--
+int(1)
+unicode(6) "a\000b"
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php