php-src/.github/scripts/windows
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
..
build.bat Merge branch 'PHP-8.3' into PHP-8.4 2025-06-25 02:01:59 +05:30
build_task.bat Merge branch 'PHP-8.4' 2025-02-16 23:08:21 +01:00
find-target-branch.bat CI: prepare for PHP-8.4 (#16036) 2024-09-25 22:57:59 +09:00
find-vs-toolset.bat Switch to windows-2022 in CI (#18927) 2025-06-25 01:57:07 +05:30
test.bat Merge branch 'PHP-8.3' into PHP-8.4 2025-06-25 02:01:59 +05:30
test_task.bat Fix error handling inconsistency with opcache 2025-07-27 11:01:49 +02:00