diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-03-12 16:53:51 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-03-12 16:53:51 +0300 |
commit | 8633685675692e9a926cf9f97b1c406c37497ddf (patch) | |
tree | e0c82ad945a575f90f90dfd402c7e2dc013a3acc /ext/pcre/php_pcre.c | |
parent | 0e30c543ec8e6c371e0aef6e125e7b90f4b1b790 (diff) | |
download | php-git-8633685675692e9a926cf9f97b1c406c37497ddf.tar.gz |
Use specialized macro for string zval creation
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 27440bb490..6e769e06f0 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1780,7 +1780,7 @@ static PHP_FUNCTION(preg_quote) /* Reallocate string and return it */ out_str = zend_string_realloc(out_str, q - out_str->val, 0); - RETURN_STR(out_str); + RETURN_NEW_STR(out_str); } /* }}} */ |