]> granicus.if.org Git - php/commitdiff
return empty string when got empty parameter
authorAntony Dovgal <tony2001@php.net>
Fri, 24 Dec 2004 19:45:54 +0000 (19:45 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 24 Dec 2004 19:45:54 +0000 (19:45 +0000)
ext/pcre/php_pcre.c

index b48df3fa5e8a32ac46bbf9d56a57b4468a364ecc..55da280ca448c20f3f1381d8817cdbdb25f4c64f 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_EMPTY_STRING();
+               RETURN_EMPTY_STRING();
        }
 
        if (ZEND_NUM_ARGS() == 2) {