php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch gnupg-php54.patch for gnupg Bug #61511Patch version 2012-05-10 09:29 UTC Return to Bug #61511 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: massimiliano.torromeo+pecl@gmail.comdiff -rub gnupg-1.3.2/gnupg.c gnupg-1.3.2-php54fix/gnupg.c --- gnupg-1.3.2/gnupg.c 2012-05-10 10:25:34.107657120 +0200 +++ gnupg-1.3.2-php54fix/gnupg.c 2012-05-10 10:24:47.354324714 +0200 @@ -182,7 +182,12 @@ ALLOC_HASHTABLE (intern->zo.properties); zend_hash_init (intern->zo.properties, 0, NULL, ZVAL_PTR_DTOR, 0); + +#if PHP_VERSION_ID < 50399 zend_hash_copy (intern->zo.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *)); +#else + object_properties_init(&(intern->zo), class_type); +#endif retval.handle = zend_objects_store_put(intern,NULL,(zend_objects_free_object_storage_t) gnupg_obj_dtor,NULL TSRMLS_CC); retval.handlers = (zend_object_handlers *) & gnupg_object_handlers; |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Sat Dec 21 15:01:29 2024 UTC |