Re: [PHP4BETA] I've changed the Zend Resource-API a bit....
| From: | Thies C. Arntzen | Date: | Tue, 12 Oct 1999 15:08:53 +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-5510@lists.php.net to get a copy of this message | ||
On Tue, 12 Oct 1999, Andrei Zmievski wrote:
> 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.
have you updated libzend?
>
>
> -Andrei
> * The future has arrived, it's just not evenly distributed. -W. Gibson *
>
> --
> PHP 4 Beta
>
>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany