From: Ilia Alshanetsky Date: Fri, 10 Dec 2004 00:36:51 +0000 (+0000) Subject: Avoid causing a crash. X-Git-Tag: RELEASE_0_2~542 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5484568c5c15f23e3b98a470b756acf915a11828;p=php Avoid causing a crash. --- diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index f3668a8b3a..b48df3fa5e 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -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) {