[php-src] PR #24149: Fix EG(record_errors) leak when compilation bails out

From: Date: Mon, 05 Oct 2026 21:41:13 +0000
Subject: [php-src] PR #24149: Fix EG(record_errors) leak when compilation bails out
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-39186@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/24149 Author: ptondereau Since 7b3e68ff690, a bailout in compile_file() or in the opcache optimizer leaves EG(record_errors) true. The next compilation fails the assertion Error recording already enabled, and PHP does not show later warnings. This adds a zend_catch block to the three regions, as opcache_compile_file() does. The new zend_test.fatal_error_in_pass INI setting causes a fatal error in the optimizer for the tests.

« previous php.git-pulls (#39186) next »