php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
Description:
------------
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->std.properties, &(class_type->default_properties),
	              (copy_ctor_func_t)zval_add_ref, (void *)(&tmp),
	               sizeof(zval *));
#else
	object_properties_init(&(obj->std), class_type);
#endif

This needs to be done in some five places.

Reproduce code:
---------------
Compile against 5.3.99

Expected result:
----------------
Builds

Actual result:
--------------
Does not build

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-25 11:49 UTC] rasmus@php.net
Fixed in SVN
 [2012-02-25 11:49 UTC] rasmus@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: rasmus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 03:01:28 2024 UTC