com php-src: Merge branch 'PHP-7.2': ext/opcache/Optimizer/zend _call_graph.c ext/opcache/Optimizer/zend_func_info .c
| From: | Xinchen Hui | Date: | Fri, 15 Jun 2018 08:31:58 +0000 |
| Subject: | com php-src: Merge branch 'PHP-7.2': ext/opcache/Optimizer/zend _call_graph.c ext/opcache/Optimizer/zend_func_info .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102160@lists.php.net to get a copy of this message | ||
Commit: efcaa371900a81a8bb94bea115a092c612b867ba
Author: Xinchen Hui <laruence@gmail.com> Fri, 15 Jun 2018 16:31:58 +0800
Parents: 5334463e6c613a78448bd32732c1dffc99676f4e f31ba7cb53271f6745c5efb1b15c53ffd5cb4b6e
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=efcaa371900a81a8bb94bea115a092c612b867ba
Log:
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixed bug #76477 (Opcache causes empty return value)
Bugs:
https://bugs.php.net/76477
Changed paths:
MM ext/opcache/Optimizer/zend_call_graph.c
MM ext/opcache/Optimizer/zend_func_info.c
Diff:
diff --cc ext/opcache/Optimizer/zend_func_info.c
index e823f88,b32a954..05a1021
--- a/ext/opcache/Optimizer/zend_func_info.c
+++ b/ext/opcache/Optimizer/zend_func_info.c
@@@ -90,12 -87,14 +90,14 @@@ static uint32_t zend_strlen_info(const
static uint32_t zend_dechex_info(const zend_call_info *call_info, const zend_ssa *ssa)
{
- if (call_info->caller_init_opline->extended_value == (uint32_t)call_info->num_args
&&
- call_info->num_args == 1) {
+ ZEND_ASSERT(call_info->caller_init_opline->extended_value ==
(uint32_t)call_info->num_args);
+ if (call_info->num_args == 1) {
return MAY_BE_RC1 | MAY_BE_STRING;
- } else {
+ } else if (call_info->num_args != -1) {
/* warning, and returns NULL */
return FUNC_MAY_WARN | MAY_BE_NULL;
+ } else {
+ return FUNC_MAY_WARN | MAY_BE_RC1 | MAY_BE_STRING | MAY_BE_NULL;
}
}