From: Antony Dovgal Date: Thu, 9 Dec 2004 15:07:56 +0000 (+0000) Subject: fix 1-byte leak X-Git-Tag: RELEASE_0_2~544 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5dbe3f6f4fc5004be1f3635e7baf00f001432a8f;p=php fix 1-byte leak --- diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 6f5a7aea66..f3668a8b3a 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, 1); + RETVAL_STRINGL("", 0, 0); } if (ZEND_NUM_ARGS() == 2) {