php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #69503
Patch paradox.c.patch revision 2015-04-22 14:46 UTC by phpbugs at webhostec dot com

Patch paradox.c.patch for Paradox Bug #69503

Patch version 2015-04-22 14:46 UTC

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

Developer: phpbugs@webhostec.com

--- paradox-1.4.3/paradox.c	2007-09-25 15:12:42.000000000 +0300
+++ paradox.c	2015-04-22 16:42:13.399878251 +0300
@@ -48,7 +48,7 @@
  *
  * Every user visible function must have an entry in paradox_functions[].
  */
-function_entry paradox_functions[] = {
+zend_function_entry paradox_functions[] = {
 	PHP_FE(px_new, NULL)
 	PHP_FE(px_open_fp, NULL)
 	PHP_FE(px_create_fp, NULL)
@@ -89,7 +89,7 @@
 };
 /* }}} */

-function_entry paradox_funcs_db[] = {
+zend_function_entry paradox_funcs_db[] = {
 	PHP_ME_MAPPING(__construct, px_new, NULL, 0)
 	PHP_ME_MAPPING(open_fp, px_open_fp, NULL, 0)
 	PHP_ME_MAPPING(create_fp, px_create_fp, NULL, 0)
@@ -283,7 +283,7 @@

     ALLOC_HASHTABLE(intern->zo.properties);
     zend_hash_init(intern->zo.properties, 0, NULL, ZVAL_PTR_DTOR, 0);
-    zend_hash_copy(intern->zo.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
+    object_properties_init((zend_object*) &(intern->zo), class_type);

 	intern->ptr = PX_new2(px_custom_errorhandler, px_emalloc, px_erealloc, px_efree);
     retval->handle = zend_objects_store_put(intern, paradox_object_dtor, NULL, NULL TSRMLS_CC);
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Mar 29 22:01:26 2020 UTC