Avoid causing a crash.

This commit is contained in:
Ilia Alshanetsky 2004-12-10 00:36:51 +00:00
parent ad76be844b
commit 5484568c5c

View File

@ -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) {