File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ PHP NEWS
1111 iterator). (iliaal)
1212 . Lock unmodified readonly properties for modification after clone-with.
1313 (NickSdot)
14+ . abort() instead of exit() on hard OOM. (realFlowControl)
1415
1516- Calendar:
1617 . Fixed bug GH-22602 (gregoriantojd() and juliantojd() integer overflow with
Original file line number Diff line number Diff line change @@ -533,6 +533,10 @@ PHP 8.6 UPGRADE NOTES
53353313. Other Changes
534534========================================
535535
536+ - Core:
537+ . In case of a hard OOM PHP now calls abort() instead of exit(1), changing
538+ the exit code to 134 and possibly creating a core dump.
539+
536540========================================
53754114. Performance Improvements
538542========================================
Original file line number Diff line number Diff line change @@ -2974,7 +2974,7 @@ ZEND_API void refresh_memory_manager(void)
29742974static ZEND_COLD ZEND_NORETURN void zend_out_of_memory (void )
29752975{
29762976 fprintf (stderr , "Out of memory\n" );
2977- exit ( 1 );
2977+ abort ( );
29782978}
29792979
29802980#if ZEND_MM_CUSTOM
You can’t perform that action at this time.
0 commit comments