73
73
#include "zend_dtrace.h"
74
74
#include "zend_observer.h"
75
75
#include "zend_system_id.h"
76
- #include "zend_fibers.h"
77
76
78
77
#include "php_content_types.h"
79
78
#include "php_ticks.h"
@@ -1773,17 +1772,12 @@ void php_request_shutdown(void *dummy)
1773
1772
php_call_shutdown_functions ();
1774
1773
}
1775
1774
1776
- /* 2. Cleanup all active fibers. */
1777
- zend_try {
1778
- zend_fiber_cleanup ();
1779
- } zend_end_try ();
1780
-
1781
- /* 3. Call all possible __destruct() functions */
1775
+ /* 2. Call all possible __destruct() functions */
1782
1776
zend_try {
1783
1777
zend_call_destructors ();
1784
1778
} zend_end_try ();
1785
1779
1786
- /* 4 . Flush all output buffers */
1780
+ /* 3 . Flush all output buffers */
1787
1781
zend_try {
1788
1782
bool send_buffer = SG (request_info ).headers_only ? 0 : 1 ;
1789
1783
@@ -1800,27 +1794,27 @@ void php_request_shutdown(void *dummy)
1800
1794
}
1801
1795
} zend_end_try ();
1802
1796
1803
- /* 5 . Reset max_execution_time (no longer executing php code after response sent) */
1797
+ /* 4 . Reset max_execution_time (no longer executing php code after response sent) */
1804
1798
zend_try {
1805
1799
zend_unset_timeout ();
1806
1800
} zend_end_try ();
1807
1801
1808
- /* 6 . Call all extensions RSHUTDOWN functions */
1802
+ /* 5 . Call all extensions RSHUTDOWN functions */
1809
1803
if (PG (modules_activated )) {
1810
1804
zend_deactivate_modules ();
1811
1805
}
1812
1806
1813
- /* 7 . Shutdown output layer (send the set HTTP headers, cleanup output handlers, etc.) */
1807
+ /* 6 . Shutdown output layer (send the set HTTP headers, cleanup output handlers, etc.) */
1814
1808
zend_try {
1815
1809
php_output_deactivate ();
1816
1810
} zend_end_try ();
1817
1811
1818
- /* 8 . Free shutdown functions */
1812
+ /* 7 . Free shutdown functions */
1819
1813
if (PG (modules_activated )) {
1820
1814
php_free_shutdown_functions ();
1821
1815
}
1822
1816
1823
- /* 9 . Destroy super-globals */
1817
+ /* 8 . Destroy super-globals */
1824
1818
zend_try {
1825
1819
int i ;
1826
1820
@@ -1829,38 +1823,38 @@ void php_request_shutdown(void *dummy)
1829
1823
}
1830
1824
} zend_end_try ();
1831
1825
1832
- /* 10 . Shutdown scanner/executor/compiler and restore ini entries */
1826
+ /* 9 . Shutdown scanner/executor/compiler and restore ini entries */
1833
1827
zend_deactivate ();
1834
1828
1835
- /* 11 . free request-bound globals */
1829
+ /* 10 . free request-bound globals */
1836
1830
php_free_request_globals ();
1837
1831
1838
- /* 12 . Call all extensions post-RSHUTDOWN functions */
1832
+ /* 11 . Call all extensions post-RSHUTDOWN functions */
1839
1833
zend_try {
1840
1834
zend_post_deactivate_modules ();
1841
1835
} zend_end_try ();
1842
1836
1843
- /* 13 . SAPI related shutdown (free stuff) */
1837
+ /* 12 . SAPI related shutdown (free stuff) */
1844
1838
zend_try {
1845
1839
sapi_deactivate ();
1846
1840
} zend_end_try ();
1847
1841
1848
- /* 14 . free virtual CWD memory */
1842
+ /* 13 . free virtual CWD memory */
1849
1843
virtual_cwd_deactivate ();
1850
1844
1851
- /* 15 . Destroy stream hashes */
1845
+ /* 14 . Destroy stream hashes */
1852
1846
zend_try {
1853
1847
php_shutdown_stream_hashes ();
1854
1848
} zend_end_try ();
1855
1849
1856
- /* 16 . Free Willy (here be crashes) */
1850
+ /* 15 . Free Willy (here be crashes) */
1857
1851
zend_arena_destroy (CG (arena ));
1858
1852
zend_interned_strings_deactivate ();
1859
1853
zend_try {
1860
1854
shutdown_memory_manager (CG (unclean_shutdown ) || !report_memleaks , 0 );
1861
1855
} zend_end_try ();
1862
1856
1863
- /* 17 . Deactivate Zend signals */
1857
+ /* 16 . Deactivate Zend signals */
1864
1858
#ifdef ZEND_SIGNALS
1865
1859
zend_signal_deactivate ();
1866
1860
#endif
0 commit comments