Closed sjinks closed 7 years ago
(gdb) frame 4
(gdb) print (char*)((zend_class_entry*)zv->value.ptr)->name->val
$1 = 0x7fffeb24cd98 "PHPUnit_Framework_Constraint_IsType"
Related to #1488
--- a/kernels/ZendEngine3/memory.c
+++ b/kernels/ZendEngine3/memory.c
@@ -400,7 +400,7 @@ void zephir_create_symbol_table()
entry->symbol_table = ex->symbol_table;
entry->prev = gptr->active_symbol_table;
- symbol_table = (zend_array*)emalloc(sizeof(zend_array *));
+ symbol_table = (zend_array*)emalloc(sizeof(zend_array));
zend_hash_init(symbol_table, 0, NULL, ZVAL_PTR_DTOR, 0);
zend_hash_real_init(symbol_table, 0);
PHP 7.0.9 NTS DEBUG