com php-src: Fixed incorrec type usage: ext/opcache/Optimizer/z end_optimizer.c
| From: | Dmitry Stogov | Date: | Tue, 25 Oct 2016 19:12:34 +0000 |
| Subject: | com php-src: Fixed incorrec type usage: ext/opcache/Optimizer/z end_optimizer.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95287@lists.php.net to get a copy of this message | ||
Commit: bdd3fec7f8277e7ce6b18bfbd11b0e99670feb81
Author: Dmitry Stogov <dmitry@zend.com> Tue, 25 Oct 2016 22:12:34 +0300
Parents: e893abda814c8e0e5f7feb45165e147a85a4d848
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bdd3fec7f8277e7ce6b18bfbd11b0e99670feb81
Log:
Fixed incorrec type usage
Changed paths:
M ext/opcache/Optimizer/zend_optimizer.c
Diff:
diff --git a/ext/opcache/Optimizer/zend_optimizer.c b/ext/opcache/Optimizer/zend_optimizer.c
index 841be4a..82a6daa 100644
--- a/ext/opcache/Optimizer/zend_optimizer.c
+++ b/ext/opcache/Optimizer/zend_optimizer.c
@@ -566,7 +566,7 @@ zend_function *zend_optimizer_get_called_func(
zend_function *func;
if (script && (func = zend_hash_find_ptr(&script->function_table,
Z_STR_P(function_name)))) {
return func;
- } else if ((func = zend_hash_find_ptr(EG(function_table), function_name)) != NULL) {
+ } else if ((func = zend_hash_find_ptr(EG(function_table), Z_STR_P(function_name))) != NULL) {
if (func->type == ZEND_INTERNAL_FUNCTION) {
return func;
} else if (func->type == ZEND_USER_FUNCTION &&