fix test
This commit is contained in:
Antony Dovgal 2006-10-03 21:37:02 +00:00
parent a264ef3348
commit df68f888ea
2 changed files with 4 additions and 1 deletions

View File

@ -1768,7 +1768,7 @@ PHP_FUNCTION(preg_quote)
*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);
}
/* }}} */

View File

@ -9,3 +9,6 @@ Bug #26927 (preg_quote() does not escape \0)
--EXPECT--
int(1)
string(6) "a\000b"
--UEXPECT--
int(1)
unicode(6) "a\000b"