com php-src: Added check: ext/pcre/php_pcre.c
| From: | Dmitry Stogov | Date: | Thu, 06 Mar 2014 18:07:28 +0000 |
| Subject: | com php-src: Added check: ext/pcre/php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77711@lists.php.net to get a copy of this message | ||
Commit: fff3c54f9e2b5ca17e8725e29454504ba55accc9
Author: Dmitry Stogov <dmitry@zend.com> Thu, 6 Mar 2014 22:07:28 +0400
Parents: 10c7f2ddbc98dec21e3060fc4c9319465438c9a9
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fff3c54f9e2b5ca17e8725e29454504ba55accc9
Log:
Added check
Changed paths:
M ext/pcre/php_pcre.c
Diff:
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 83844b1..ce7b04c 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -539,7 +539,7 @@ static void php_do_pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global) /* {{{ *
RETURN_FALSE;
}
- if (subpats) {
+ if (subpats && Z_TYPE_P(subpats) == IS_REFERENCE) {
subpats = Z_REFVAL_P(subpats);
}
php_pcre_match_impl(pce, subject, subject_len, return_value, subpats,