Skip to content

Commit 99269a2

Browse files
committed
move namespace destruction to end of process
1 parent 75f3dd9 commit 99269a2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Zend/zend.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
*/
1919

2020
#include "zend.h"
21+
22+
#include <zend_namespaces.h>
23+
2124
#include "zend_extensions.h"
2225
#include "zend_modules.h"
2326
#include "zend_constants.h"
@@ -1223,6 +1226,8 @@ void zend_shutdown(void) /* {{{ */
12231226
zend_map_ptr_static_last = 0;
12241227
zend_map_ptr_static_size = 0;
12251228

1229+
zend_destroy_namespaces();
1230+
12261231
zend_destroy_rsrc_list_dtors();
12271232

12281233
zend_unload_modules();

main/main.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@
6666
#include <sys/wait.h>
6767
#endif
6868

69-
#include <zend_namespaces.h>
70-
7169
#include "zend_compile.h"
7270
#include "zend_execute.h"
7371
#include "zend_highlight.h"
@@ -1968,8 +1966,6 @@ void php_request_shutdown(void *dummy)
19681966
zend_post_deactivate_modules();
19691967
} zend_end_try();
19701968

1971-
zend_destroy_namespaces();
1972-
19731969
/* 12. SAPI related shutdown*/
19741970
zend_try {
19751971
sapi_deactivate_module();

0 commit comments

Comments
 (0)