Skip to content

Commit 910411f

Browse files
committed
Merge branch 'PHP-8.4'
* PHP-8.4: Fix line assignment in zend_ast_create_va()
2 parents 58f5568 + d66e87b commit 910411f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_ast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_va(
304304
ast->attr = attr;
305305
for (uint32_t i = 0; i < children; i++) {
306306
ast->child[i] = va_arg(*va, zend_ast *);
307-
if (lineno != (uint32_t)-1 && ast->child[i]) {
307+
if (lineno == (uint32_t)-1 && ast->child[i]) {
308308
lineno = zend_ast_get_lineno(ast->child[i]);
309309
}
310310
}

0 commit comments

Comments
 (0)