1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

~$resource is unsupported.

This commit is contained in:
Dmitry Stogov
2017-07-14 11:19:20 +03:00
parent c77e45610c
commit bd346bfa5c

View File

@@ -4074,7 +4074,7 @@ int zend_may_throw(const zend_op *opline, zend_op_array *op_array, zend_ssa *ssa
return (t1 & (MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT)) ||
(t2 & (MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT));
case ZEND_BW_NOT:
return (t1 & (MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_ARRAY|MAY_BE_OBJECT));
return (t1 & (MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE));
case ZEND_BOOL_NOT:
case ZEND_PRE_INC:
case ZEND_POST_INC: