File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -10165,6 +10165,7 @@ void zend_eval_const_expr(zend_ast **ast_ptr) /* {{{ */
10165
10165
}
10166
10166
10167
10167
child0_is_true = zend_is_true (zend_ast_get_zval (ast -> child [0 ]));
10168
+ /* TODO Check if need to handle potential TypeError if child[0] is an object which cannot be converted to bool */
10168
10169
if (child0_is_true == (ast -> kind == ZEND_AST_OR )) {
10169
10170
ZVAL_BOOL (& result , ast -> kind == ZEND_AST_OR );
10170
10171
break ;
@@ -10175,6 +10176,7 @@ void zend_eval_const_expr(zend_ast **ast_ptr) /* {{{ */
10175
10176
}
10176
10177
10177
10178
child1_is_true = zend_is_true (zend_ast_get_zval (ast -> child [1 ]));
10179
+ /* TODO Check if need to handle potential TypeError if child[1] is an object which cannot be converted to bool */
10178
10180
if (ast -> kind == ZEND_AST_OR ) {
10179
10181
ZVAL_BOOL (& result , child0_is_true || child1_is_true );
10180
10182
} else {
@@ -10241,6 +10243,7 @@ void zend_eval_const_expr(zend_ast **ast_ptr) /* {{{ */
10241
10243
}
10242
10244
10243
10245
child = & ast -> child [2 - zend_is_true (zend_ast_get_zval (ast -> child [0 ]))];
10246
+ /* TODO Check if need to handle potential TypeError if child[0] is an object which cannot be converted to bool */
10244
10247
if (* child == NULL ) {
10245
10248
child -- ;
10246
10249
}
You can’t perform that action at this time.
0 commit comments