mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix zend_may_throw() for FETCH_DIM_IS and ISSET_ISEMPTY_DIM_OBJ
This commit is contained in:
commit
b046143529
1 changed files with 2 additions and 2 deletions
|
@ -5130,9 +5130,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…
Add table
Add a link
Reference in a new issue