Re: [PHP4BETA] I've changed the Zend Resource-API a bit....
| From: | Thies C. Arntzen | Date: | Tue, 12 Oct 1999 15:17:01 +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-5512@lists.php.net to get a copy of this message | ||
fixed now -
cvs.php.net is down - please change line 198
to
packet = (wddx_packet *)zend_fetch_resource(packet_id, -1, "WDDX packet ID", NULL, 1,
le_wddx);
sorry!
tc
On Tue, 12 Oct 1999, Andrei Zmievski wrote:
> Thies C. Arntzen wrote:
> > 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?
>
> Yes, that's why it stopped working. :)
>
> -Andrei
> * Think digital, act analog. *
>
>
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