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 @@ -9726,6 +9726,7 @@ void zend_eval_const_expr(zend_ast **ast_ptr) /* {{{ */
9726
9726
}
9727
9727
9728
9728
child0_is_true = zend_is_true (zend_ast_get_zval (ast -> child [0 ]));
9729
+ /* TODO Check if need to handle potential TypeError if child[0] is an object which cannot be converted to bool */
9729
9730
if (child0_is_true == (ast -> kind == ZEND_AST_OR )) {
9730
9731
ZVAL_BOOL (& result , ast -> kind == ZEND_AST_OR );
9731
9732
break ;
@@ -9736,6 +9737,7 @@ void zend_eval_const_expr(zend_ast **ast_ptr) /* {{{ */
9736
9737
}
9737
9738
9738
9739
child1_is_true = zend_is_true (zend_ast_get_zval (ast -> child [1 ]));
9740
+ /* TODO Check if need to handle potential TypeError if child[1] is an object which cannot be converted to bool */
9739
9741
if (ast -> kind == ZEND_AST_OR ) {
9740
9742
ZVAL_BOOL (& result , child0_is_true || child1_is_true );
9741
9743
} else {
@@ -9802,6 +9804,7 @@ void zend_eval_const_expr(zend_ast **ast_ptr) /* {{{ */
9802
9804
}
9803
9805
9804
9806
child = & ast -> child [2 - zend_is_true (zend_ast_get_zval (ast -> child [0 ]))];
9807
+ /* TODO Check if need to handle potential TypeError if child[0] is an object which cannot be converted to bool */
9805
9808
if (* child == NULL ) {
9806
9809
child -- ;
9807
9810
}
You can’t perform that action at this time.
0 commit comments