mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
leaks--
fix test
This commit is contained in:
parent
a264ef3348
commit
df68f888ea
@ -1768,7 +1768,7 @@ PHP_FUNCTION(preg_quote)
|
|||||||
*q = '\0';
|
*q = '\0';
|
||||||
|
|
||||||
/* Reallocate string and return it */
|
/* 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);
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
@ -9,3 +9,6 @@ Bug #26927 (preg_quote() does not escape \0)
|
|||||||
--EXPECT--
|
--EXPECT--
|
||||||
int(1)
|
int(1)
|
||||||
string(6) "a\000b"
|
string(6) "a\000b"
|
||||||
|
--UEXPECT--
|
||||||
|
int(1)
|
||||||
|
unicode(6) "a\000b"
|
||||||
|
Loading…
Reference in New Issue
Block a user