mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Fix zend_may_throw() for FETCH_DIM_IS and ISSET_ISEMPTY_DIM_OBJ
Recentlty this insructions were updated to emit warning on inability to convert double index to long. This may lead to exception. This fixes memory leak on wordpress test suite (nightly workflow)
This commit is contained in:
parent
2cde4b2ea4
commit
b33e3eb8c2
@ -5127,9 +5127,9 @@ ZEND_API bool zend_may_throw_ex(const zend_op *opline, const zend_ssa_op *ssa_op
|
||||
case ZEND_FETCH_IS:
|
||||
return (t2 & (MAY_BE_ARRAY|MAY_BE_OBJECT));
|
||||
case ZEND_ISSET_ISEMPTY_DIM_OBJ:
|
||||
return (t1 & MAY_BE_OBJECT) || (t2 & (MAY_BE_ARRAY|MAY_BE_OBJECT));
|
||||
return (t1 & MAY_BE_OBJECT) || (t2 & (MAY_BE_DOUBLE|MAY_BE_ARRAY|MAY_BE_OBJECT));
|
||||
case ZEND_FETCH_DIM_IS:
|
||||
return (t1 & MAY_BE_OBJECT) || (t2 & (MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE));
|
||||
return (t1 & MAY_BE_OBJECT) || (t2 & (MAY_BE_DOUBLE|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE));
|
||||
case ZEND_CAST:
|
||||
switch (opline->extended_value) {
|
||||
case IS_LONG:
|
||||
|
Loading…
Reference in New Issue
Block a user