1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/opcache/tests
Arnaud Le Blanc 7b3e68ff69 Fix error handling inconsistency with opcache
When opcache is enabled, error handling is altered in the following ways:

 * Errors emitted during compilation bypass the user-defined error handler
 * Exceptions emitted during class linking are turned into fatal errors

Changes here make the behavior consistent regardless of opcache being enabled or
not:

 * Errors emitted during compilation and class linking are always delayed and
   handled after compilation or class linking. During handling, user-defined
   error handlers are not bypassed. Fatal errors emitted during compilation or
   class linking cause any delayed errors to be handled immediately (without
   calling user-defined error handlers, as it would be unsafe).
 * Exceptions thrown by user-defined error handlers when handling class linking
   error are not promoted to fatal errors anymore and do not prevent linking.

Fixes GH-17422.
Closes GH-18541.
Closes GH-17627.

Co-authored-by: Tim Düsterhus <tim@bastelstu.be>
2025-07-27 11:01:49 +02:00
..
2025-06-30 18:38:30 +02:00
2025-04-29 21:39:12 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2019-06-13 12:35:29 +02:00
2019-06-13 12:35:29 +02:00
2019-06-13 12:35:29 +02:00
2021-04-14 00:21:37 +08:00
2021-05-06 10:46:00 +02:00
2021-05-17 15:46:49 +02:00
2023-10-18 17:34:10 +02:00
2023-10-18 17:34:10 +02:00
2023-10-18 17:34:10 +02:00
2023-10-18 17:34:10 +02:00
2025-01-29 12:54:23 +01:00
2024-03-20 13:21:41 +03:00
2023-01-28 11:49:14 +01:00
2023-01-28 11:49:14 +01:00
2025-07-27 09:40:22 +02:00
2023-04-03 08:02:19 +02:00
2020-02-03 22:52:20 +01:00
2023-04-03 08:02:19 +02:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2020-02-03 22:52:20 +01:00
2023-10-18 17:34:10 +02:00
2021-08-16 15:04:17 +02:00
2021-08-16 15:04:17 +02:00
2020-02-03 22:52:20 +01:00
2019-07-05 11:00:27 +02:00
2022-10-07 15:48:05 +02:00
2021-06-10 10:52:53 +02:00