mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Avoid causing a crash.
This commit is contained in:
parent
ad76be844b
commit
5484568c5c
@ -1416,7 +1416,7 @@ PHP_FUNCTION(preg_quote)
|
||||
|
||||
/* Nothing to do if we got an empty string */
|
||||
if (in_str == in_str_end) {
|
||||
RETVAL_STRINGL("", 0, 0);
|
||||
RETVAL_EMPTY_STRING();
|
||||
}
|
||||
|
||||
if (ZEND_NUM_ARGS() == 2) {
|
||||
|
Loading…
Reference in New Issue
Block a user