summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2004-12-09 15:07:56 +0000
committerAntony Dovgal <tony2001@php.net>2004-12-09 15:07:56 +0000
commit5dbe3f6f4fc5004be1f3635e7baf00f001432a8f (patch)
tree749fc4bcb03b46f55c98f993c2c5106e3e604fb8 /ext/pcre/php_pcre.c
parente76824c91fd428b663dd14dfbabe9501e26f360d (diff)
downloadphp-git-5dbe3f6f4fc5004be1f3635e7baf00f001432a8f.tar.gz
fix 1-byte leak
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c2
1 files changed, 1 insertions, 1 deletions
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) {