We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f7c33 commit da979a5Copy full SHA for da979a5
Zend/zend_namespaces.c
@@ -51,6 +51,13 @@ static zend_class_entry *insert_namespace(const zend_string *name) {
51
ns = create_namespace(interned_name);
52
ns->lexical_scope = parent_ns;
53
zend_hash_add_ptr(EG(namespaces), interned_name, ns);
54
+
55
+ /* sometimes, opcache refuses to intern the string */
56
+ if (interned_name == needle) {
57
+ zend_string_release(interned_name);
58
+ }
59
+ } else {
60
+ zend_string_release(needle);
61
}
62
63
parent_ns = ns;
0 commit comments