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. * -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]