zend_file_handle_dtor(&fake);
dataptr->op_array = ret;
- ++*dataptr->op_array->refcount;
+ if (dataptr->op_array->refcount) {
+ ++*dataptr->op_array->refcount;
+ } else {
+ dataptr->op_array->refcount = emalloc(sizeof(uint32_t));
+ *dataptr->op_array->refcount = 2;
+ }
return ret;
}
[Successful compilation of %s]
prompt> halloarray(2) {
["%s"]=>
- array(6) {
- [11]=>
- int(0)
+ array(5) {
[13]=>
int(1)
[17]=>
}
["A::b"]=>
array(2) {
- [5]=>
- int(5)
[4]=>
int(1)
+ [5]=>
+ int(5)
}
}
[Script ended normally]
$a->b();
$a->b('ha');
-var_dump(phpdbg_end_oplog(["functions" => true, "show_unexecuted" => true]));
+var_dump(phpdbg_end_oplog(["functions" => true]));