File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 19
19
20
20
#include "zend.h"
21
21
22
- #include <zend_namespaces.h>
23
-
24
22
#include "zend_extensions.h"
25
23
#include "zend_modules.h"
26
24
#include "zend_constants.h"
@@ -1232,7 +1230,6 @@ void zend_shutdown(void) /* {{{ */
1232
1230
1233
1231
zend_optimizer_shutdown ();
1234
1232
1235
- zend_destroy_namespaces ();
1236
1233
startup_done = false;
1237
1234
}
1238
1235
/* }}} */
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ static zend_class_entry *insert_namespace(const zend_string *name) {
49
49
while (pos <= end ) {
50
50
if (pos == end || * pos == '\\' ) {
51
51
len = pos - start ;
52
- zend_string * needle = zend_string_init (ZSTR_VAL (name ), len , 1 );
52
+ zend_string * needle = zend_string_init (ZSTR_VAL (name ), len , 0 );
53
53
54
54
ns = zend_hash_find_ptr (& namespaces , needle );
55
55
Original file line number Diff line number Diff line change 66
66
#include <sys/wait.h>
67
67
#endif
68
68
69
+ #include "zend_namespaces.h"
70
+
69
71
#include "zend_compile.h"
70
72
#include "zend_execute.h"
71
73
#include "zend_highlight.h"
@@ -1956,6 +1958,7 @@ void php_request_shutdown(void *dummy)
1956
1958
} zend_end_try ();
1957
1959
1958
1960
/* 9. Shutdown scanner/executor/compiler and restore ini entries */
1961
+ zend_destroy_namespaces ();
1959
1962
zend_deactivate ();
1960
1963
1961
1964
/* 10. free request-bound globals */
You can’t perform that action at this time.
0 commit comments