efree(intern->debug_info);
}
- if (intern->gcdata_len > 0) {
+ if (intern->gcdata != NULL) {
efree(intern->gcdata);
}
long requiredLength = intern->storage.nNumOfElements * 2;
if (requiredLength > intern->gcdata_len) {
- if (intern->gcdata_len > 0) {
- efree(intern->gcdata);
- }
-
intern->gcdata = (zval**)erealloc(intern->gcdata, sizeof(zval*) * requiredLength);
intern->gcdata_len = requiredLength;
}
}
*table = intern->gcdata;
- *n = intern->gcdata_len;
+ *n = i;
return std_object_handlers.get_properties(obj TSRMLS_CC);
}