|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59731 Zend API change: default_properties
Submitted: 2011-04-25 05:07 UTC Modified: 2012-02-25 11:49 UTC
From: ulf dot wendel at phpdoc dot de Assigned: rasmus (profile)
Status: Closed Package: drizzle (PECL)
PHP Version: Trunk SVN-2011-04-25 (dev) OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ulf dot wendel at phpdoc dot de
New email:
PHP Version: OS:


 [2011-04-25 05:07 UTC] ulf dot wendel at phpdoc dot de
The code won't compile with PHP 5.3.99

/home/nixnutz/php-src/pecl/drizzle/trunk/php_drizzle.c: In function ?drizzle_obj_new_ex?:
/home/nixnutz/php-src/pecl/drizzle/trunk/php_drizzle.c:1317:50: error: ?zend_class_entry? has no member named ?default_properties?

Change your usage of the Zend API. For example, do:

#if PHP_VERSION_ID < 50399	
	zend_hash_copy(obj->, &(class_type->default_properties),
	              (copy_ctor_func_t)zval_add_ref, (void *)(&tmp),
	               sizeof(zval *));
	object_properties_init(&(obj->std), class_type);

This needs to be done in some five places.

Reproduce code:
Compile against 5.3.99

Expected result:

Actual result:
Does not build


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-25 11:49 UTC]
Fixed in SVN
 [2012-02-25 11:49 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: rasmus
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Aug 12 15:03:36 2022 UTC