Re: Re: Help - Merging Resource into a call_function array
| From: | Andrei Zmievski | Date: | Thu, 18 Oct 2001 16:47:24 +0000 |
| Subject: | Re: Re: Help - Merging Resource into a call_function array | ||
| References: | 1 | Groups: | php.dev php.gtk.dev |
| Request: | Send a blank email to php-dev+get-68258@lists.php.net to get a copy of this message | ||
On Thu, 18 Oct 2001, Alan Knowles wrote:
> Probably worth continuing on php-gtk-dev only...
>
> I was getting a bit further with
> MAKE_STD_ZVAL(myresource);
> ZVAL_RESOURCE(myresource, gs) ;
> /*ZEND_REGISTER_RESOURCE(myresource, gs, le_gtkhtmlstream); */
> now the function does not segfault, but does not appear to pass resource around..
Try this:
long gs_id;
MAKE_STD_ZVAL(myresource);
gs_id = zend_list_insert(gs, le_gtkhtmlstream);
ZVAL_RESOURCE(myresource, gs_id);
Code not tested.
-Andrei
* Proximity bug: when the program crashes in front of important visitors. *