File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -10097,6 +10097,7 @@ void zend_eval_const_expr(zend_ast **ast_ptr) /* {{{ */
10097
10097
}
10098
10098
10099
10099
child0_is_true = zend_is_true (zend_ast_get_zval (ast -> child [0 ]));
10100
+ /* TODO Check if need to handle potential TypeError if child[0] is an object which cannot be converted to bool */
10100
10101
if (child0_is_true == (ast -> kind == ZEND_AST_OR )) {
10101
10102
ZVAL_BOOL (& result , ast -> kind == ZEND_AST_OR );
10102
10103
break ;
@@ -10107,6 +10108,7 @@ void zend_eval_const_expr(zend_ast **ast_ptr) /* {{{ */
10107
10108
}
10108
10109
10109
10110
child1_is_true = zend_is_true (zend_ast_get_zval (ast -> child [1 ]));
10111
+ /* TODO Check if need to handle potential TypeError if child[1] is an object which cannot be converted to bool */
10110
10112
if (ast -> kind == ZEND_AST_OR ) {
10111
10113
ZVAL_BOOL (& result , child0_is_true || child1_is_true );
10112
10114
} else {
@@ -10173,6 +10175,7 @@ void zend_eval_const_expr(zend_ast **ast_ptr) /* {{{ */
10173
10175
}
10174
10176
10175
10177
child = & ast -> child [2 - zend_is_true (zend_ast_get_zval (ast -> child [0 ]))];
10178
+ /* TODO Check if need to handle potential TypeError if child[0] is an object which cannot be converted to bool */
10176
10179
if (* child == NULL ) {
10177
10180
child -- ;
10178
10181
}
You can’t perform that action at this time.
0 commit comments