summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-php/pecl-drizzle/files/pecl-drizzle-0.4.2-php54.patch')
-rw-r--r--dev-php/pecl-drizzle/files/pecl-drizzle-0.4.2-php54.patch73
1 files changed, 73 insertions, 0 deletions
diff --git a/dev-php/pecl-drizzle/files/pecl-drizzle-0.4.2-php54.patch b/dev-php/pecl-drizzle/files/pecl-drizzle-0.4.2-php54.patch
new file mode 100644
index 000000000000..42c27103a67b
--- /dev/null
+++ b/dev-php/pecl-drizzle/files/pecl-drizzle-0.4.2-php54.patch
@@ -0,0 +1,73 @@
+diff -aurN drizzle-0.4.2.orig/php_drizzle.c drizzle-0.4.2/php_drizzle.c
+--- drizzle-0.4.2.orig/php_drizzle.c 1970-01-01 04:13:08.000000000 -0500
++++ drizzle-0.4.2/php_drizzle.c 2014-10-22 21:38:21.882838493 -0400
+@@ -1314,9 +1314,13 @@
+ }
+
+ zend_object_std_init(&(obj->std), class_type TSRMLS_CC);
++#if PHP_VERSION_ID < 50399
+ zend_hash_copy(obj->std.properties, &(class_type->default_properties),
+ (copy_ctor_func_t)zval_add_ref, (void *)(&tmp),
+ sizeof(zval *));
++#else
++ object_properties_init((zend_object*) &(obj->std), class_type);
++#endif
+
+ value.handle= zend_objects_store_put(obj,
+ (zend_objects_store_dtor_t)zend_objects_destroy_object,
+@@ -1582,9 +1586,13 @@
+ }
+
+ zend_object_std_init(&(obj->std), class_type TSRMLS_CC);
++#if PHP_VERSION_ID < 50399
+ zend_hash_copy(obj->std.properties, &(class_type->default_properties),
+ (copy_ctor_func_t)zval_add_ref, (void *)(&tmp),
+ sizeof(zval *));
++#else
++ object_properties_init((zend_object*) &(obj->std), class_type);
++#endif
+
+ obj->value.handle= zend_objects_store_put(obj,
+ (zend_objects_store_dtor_t)zend_objects_destroy_object,
+@@ -2505,9 +2513,13 @@
+ }
+
+ zend_object_std_init(&(obj->std), class_type TSRMLS_CC);
++#if PHP_VERSION_ID < 50399
+ zend_hash_copy(obj->std.properties, &(class_type->default_properties),
+ (copy_ctor_func_t)zval_add_ref, (void *)(&tmp),
+ sizeof(zval *));
++#else
++ object_properties_init((zend_object*) &(obj->std), class_type);
++#endif
+
+ obj->value.handle= zend_objects_store_put(obj,
+ (zend_objects_store_dtor_t)zend_objects_destroy_object,
+@@ -3017,9 +3029,13 @@
+ }
+
+ zend_object_std_init(&(result->std), class_type TSRMLS_CC);
++#if PHP_VERSION_ID < 50399
+ zend_hash_copy(result->std.properties, &(class_type->default_properties),
+ (copy_ctor_func_t)zval_add_ref, (void *)(&tmp),
+ sizeof(zval *));
++#else
++ object_properties_init((zend_object*) &(result->std), class_type);
++#endif
+
+ value.handle= zend_objects_store_put(result,
+ (zend_objects_store_dtor_t)zend_objects_destroy_object,
+@@ -3382,9 +3398,13 @@
+ }
+
+ zend_object_std_init(&(obj->std), class_type TSRMLS_CC);
++#if PHP_VERSION_ID < 50399
+ zend_hash_copy(obj->std.properties, &(class_type->default_properties),
+ (copy_ctor_func_t)zval_add_ref, (void *)(&tmp),
+ sizeof(zval *));
++#else
++ object_properties_init((zend_object*) &(obj->std), class_type);
++#endif
+
+ value.handle= zend_objects_store_put(obj,
+ (zend_objects_store_dtor_t)zend_objects_destroy_object,