diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-12-10 00:36:51 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-12-10 00:36:51 +0000 |
commit | 5484568c5c15f23e3b98a470b756acf915a11828 (patch) | |
tree | 5be7f6c57202efddd8ec88b67cb7e976b7e4d35b /ext/pcre/php_pcre.c | |
parent | ad76be844bd9d222373122243ce8588d2d3d441a (diff) | |
download | php-git-5484568c5c15f23e3b98a470b756acf915a11828.tar.gz |
Avoid causing a crash.
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |