]> granicus.if.org Git - php/commitdiff
Avoid causing a crash.
authorIlia Alshanetsky <iliaa@php.net>
Fri, 10 Dec 2004 00:36:51 +0000 (00:36 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 10 Dec 2004 00:36:51 +0000 (00:36 +0000)
ext/pcre/php_pcre.c

index f3668a8b3aab8a79322bfb85775cd598619ad6cc..b48df3fa5e8a32ac46bbf9d56a57b4468a364ecc 100644 (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) {