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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user