There was an error while loading. Please reload this page.
2 parents 58f5568 + d66e87b commit 910411fCopy full SHA for 910411f
Zend/zend_ast.c
@@ -304,7 +304,7 @@ ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_va(
304
ast->attr = attr;
305
for (uint32_t i = 0; i < children; i++) {
306
ast->child[i] = va_arg(*va, zend_ast *);
307
-if (lineno != (uint32_t)-1 && ast->child[i]) {
+if (lineno == (uint32_t)-1 && ast->child[i]) {
308
lineno = zend_ast_get_lineno(ast->child[i]);
309
}
310
0 commit comments