File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,7 @@ ZEND_API void zend_observer_startup(void) {
82
82
ZEND_API void zend_observer_activate (void ) {
83
83
if (ZEND_OBSERVER_ENABLED ) {
84
84
fcall_handlers_arena = zend_arena_create (4096 );
85
- // TODO: How big should the arena be?
86
- observed_stack_arena = zend_arena_create (2048 );
85
+ observed_stack_arena = zend_arena_create (4096 );
87
86
}
88
87
}
89
88
Original file line number Diff line number Diff line change @@ -1747,16 +1747,16 @@ void php_request_shutdown(void *dummy)
1747
1747
1748
1748
php_deactivate_ticks ();
1749
1749
1750
+ /* 0. Call any open observer end handlers that are still open after a zend_bailout */
1751
+ if (ZEND_OBSERVER_ENABLED ) {
1752
+ zend_observer_fcall_end_all ();
1753
+ }
1754
+
1750
1755
/* 1. Call all possible shutdown functions registered with register_shutdown_function() */
1751
1756
if (PG (modules_activated )) {
1752
1757
php_call_shutdown_functions ();
1753
1758
}
1754
1759
1755
- /* 1.5. Call any open end handlers that are still open after a zend_bailout */
1756
- if (ZEND_OBSERVER_ENABLED ) {
1757
- zend_observer_fcall_end_all ();
1758
- }
1759
-
1760
1760
/* 2. Call all possible __destruct() functions */
1761
1761
zend_try {
1762
1762
zend_call_destructors ();
You can’t perform that action at this time.
0 commit comments