|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-03-05 13:29 UTC] danack@php.net
-Status: Open
+Status: Feedback
[2019-03-05 13:29 UTC] danack@php.net
[2019-03-05 13:31 UTC] danack@php.net
[2019-03-05 14:27 UTC] nikic@php.net
-Status: Feedback
+Status: Open
[2019-03-05 14:27 UTC] nikic@php.net
[2020-06-10 12:51 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2020-06-10 12:51 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 15:00:02 2025 UTC |
Description: ------------ When running the test script, the apache server processes crashes with exit status 3221225725. The timing is of no importance as this still crash after around the same number of cycles, even with a sleep inside the loop. This crash persists even with the use of gc_collect_cycles(). Tested on: Windows 7, Apache 2.4.38, PHP 7.3.2 via XAMPP Windows 7, Apache 2.4.29, PHP 7.2.2 via XAMPP Ubuntu Server 18.04, Apache/2.4.29 (Ubuntu), PHP 7.2.15-0ubuntu0.18.04.1 Test script: --------------- <?php error_reporting(E_ALL); function errorHandler(int $errorNumber, string $errorMessage) { throw new \Exception(); } $previousHandler = set_error_handler("errorHandler"); // 1000 is enough to crash on Windows 7 with XAMPP, but more is needed for Ubuntu $operations = 10000; for($i = 0; $i < $operations; $i++) { try{ //Used to generate a warning. $inexistant[0]; } catch (\Exception $e) {} } set_error_handler($previousHandler); Expected result: ---------------- The process should not crash, as exception are thrown, caught and discarded, and should be garbage collected. Actual result: -------------- Apache error.loh: [mpm_winnt:notice] [pid 6000:tid 244] AH00428: Parent: child process 3904 exited with status 3221225725 -- Restarting.