Browse Source

fix build under 5.0

fix crash when XMLWriter is instantiated but not used
migration/RELEASE_1_0_0
Rob Richards 21 years ago
parent
commit
061039b182
  1. 4
      ext/xmlwriter/php_xmlwriter.c

4
ext/xmlwriter/php_xmlwriter.c

@ -92,9 +92,9 @@ PHP_XMLWRITER_API zend_object_value xmlwriter_object_new(zend_class_entry *class
zend_object_value retval;
intern = emalloc(sizeof(ze_xmlwriter_object));
memset(&intern->zo, 0, sizeof(zend_object));
intern->zo.ce = class_type;
intern->zo.guards = NULL;
intern->zo.properties = NULL;
intern->xmlwriter_ptr = NULL;
ALLOC_HASHTABLE(intern->zo.properties);
zend_hash_init(intern->zo.properties, 0, NULL, ZVAL_PTR_DTOR, 0);

Loading…
Cancel
Save