1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix error recording with file cache only (GH-19278)

Introduced by GH-18541.

This path is hit when compilation fails with a compile error, rather than
bailout. If a non-fatal error is recorded, it will not be emitted nor freed.
Handle accordingly.
This commit is contained in:
Ilija Tovilo
2025-07-29 10:06:43 +02:00
committed by GitHub
parent e48099a03c
commit 35a4656a59

View File

@@ -1964,6 +1964,9 @@ static zend_op_array *file_cache_compile_file(zend_file_handle *file_handle, int
return zend_accel_load_script(persistent_script, from_memory);
}
zend_emit_recorded_errors();
zend_free_recorded_errors();
return op_array;
}