php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #64012
Patch php54 revision 2013-01-17 17:44 UTC by pm at datasphere dot ch

Patch php54 for Compile Failure Bug #64012

Patch version 2013-01-17 17:44 UTC

Return to Bug #64012 | Download this patch
Patch Revisions:

Developer: pm@datasphere.ch

diff -Naur php-pecl-rsvg-0.1.0.orig/RSVG-0.1.0/rsvg.c php-pecl-rsvg-0.1.0.new/RSVG-0.1.0/rsvg.c
--- php-pecl-rsvg-0.1.0.orig/RSVG-0.1.0/rsvg.c	2010-04-17 22:46:26.000000000 +0200
+++ php-pecl-rsvg-0.1.0.new/RSVG-0.1.0/rsvg.c	2013-01-17 16:50:47.438776382 +0100
@@ -455,7 +455,13 @@
 
 	ALLOC_HASHTABLE(handle->std.properties);
 	zend_hash_init(handle->std.properties, 0, NULL, ZVAL_PTR_DTOR, 0);
+
+#if PHP_VERSION_ID < 50399
 	zend_hash_copy(handle->std.properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref,(void *) &temp, sizeof(zval *));
+#else
+    object_properties_init(&(handle->std), ce);
+#endif
+
 	retval.handle = zend_objects_store_put(handle, NULL, (zend_objects_free_object_storage_t)rsvg_object_destroy, NULL TSRMLS_CC);
 	retval.handlers = &rsvg_std_object_handlers;
 	return retval;
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 04 23:01:30 2025 UTC