Re: [PHP4BETA] I've changed the Zend Resource-API a bit....

From: Date: Tue, 12 Oct 1999 15:06:05 +0000
Subject: Re: [PHP4BETA] I've changed the Zend Resource-API a bit....
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-5509@lists.php.net to get a copy of this message
Thies C. Arntzen wrote: > ZND_REGISTER_RESOURCE(rsrc_result, rsrc_pointer, rsrc_type) now calls > zend_register_resource(rsrc_result,rsrc_pointer, rsrc_type) and returns > the new resource-id to the caller - also you can pass NULL as rsrc_result > if you're not intrested in setting the return_value. > > zend_fetch_resource_ex is obsolete and has been removed (also "hopefully" > killed all traces of it in php4/) > > ZEND_API void *zend_fetch_resource(zval **passed_id, int default_id, char > *resource_type_name, int *found_resource_type, int num_resource_types, > ...); > > is the new fetch-api. > > if "found_resource_type" is passed in will contain the actual > resource-type on return. > > also there's new ZEND_FETCH_RESOURCE2 macro which works like > ZEND_FETCH_RESOURCE but checks for 2 differnt types at once. Could you check wddx extension? It stopped working after your changes, but I can't figure out what's wrong.. $id = wddx_packet_start("php"); print wddx_packet_end($id); Should produce something but it doesn't. -Andrei * The future has arrived, it's just not evenly distributed. -W. Gibson *

« previous php.version4 (#5509) next »