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 fefb92c commit 16bc9c1Copy full SHA for 16bc9c1
Zend/zend_namespaces.c
@@ -22,7 +22,7 @@
22
#include "zend_hash.h"
23
24
zend_class_entry *create_namespace(zend_string *name) {
25
- zend_class_entry *ns = pemalloc(sizeof(zend_class_entry), 0);
+ zend_class_entry *ns = pemalloc(sizeof(zend_class_entry), 1);
26
zend_initialize_class_data(ns, 1);
27
ns->type = ZEND_NAMESPACE_CLASS;
28
ns->ce_flags |= ZEND_ACC_UNINSTANTIABLE;
Zend/zend_opcode.c
@@ -529,7 +529,7 @@ ZEND_API void destroy_zend_class(zval *zv)
529
zend_hash_release(ce->attributes);
530
}
531
if (ce->type == ZEND_NAMESPACE_CLASS) {
532
- pefree(ce, 0);
+ pefree(ce, 1);
533
} else {
534
free(ce);
535
0 commit comments