summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-12-10 00:36:51 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-12-10 00:36:51 +0000
commit5484568c5c15f23e3b98a470b756acf915a11828 (patch)
tree5be7f6c57202efddd8ec88b67cb7e976b7e4d35b /ext/pcre/php_pcre.c
parentad76be844bd9d222373122243ce8588d2d3d441a (diff)
downloadphp-git-5484568c5c15f23e3b98a470b756acf915a11828.tar.gz
Avoid causing a crash.
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 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) {