Re: [PHP-DEV] Zend resources

2005-09-13 Thread RG
"Wez Furlong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] The module whose resources you are accessing needs to export a function that will give you the list id, and also publish their structure layout in a header file. Just out of interest, what functions are in your extension?

Re: [PHP-DEV] Zend resources

2005-09-13 Thread RG
Yep, that did work, thanks a lot -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Zend resources

2005-09-13 Thread RG
wow thanks, I'm gonna go and try it out right now and tell you my results ""Sara Golemon"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > static int le_socket = -1; > > > Scratch that, those instances of -1 should have been 0 > (Which is what zend_fetch_list_dtor_id() returns a

Re: [PHP-DEV] Zend resources

2005-09-11 Thread Sara Golemon
static int le_socket = -1; Scratch that, those instances of -1 should have been 0 (Which is what zend_fetch_list_dtor_id() returns as failure) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Zend resources

2005-09-11 Thread Sara Golemon
Is there any way of getting the resource id without modifying sockets? ZEND_API int zend_fetch_list_dtor_id(char *type_name); As an implementation: In *your* socketi.c: static int le_socket = -1; PHP_RINIT(socketi) { if (le_socket == -1) { le_socket = zend_fetch_list_dtor_id("Sock

Re: [PHP-DEV] Zend resources

2005-09-11 Thread Wez Furlong
On 9/11/05, RG <[EMAIL PROTECTED]> wrote: > Yeah I have seen those functions, but they are quite bloated in my opnion. Maybe so, but at least they work :) > Is there any way of getting the resource id without modifying sockets? Nope. --Wez. > "Wez Furlong" <[EMAIL PROTECTED]> wrote in message

Re: [PHP-DEV] Zend resources

2005-09-11 Thread RG
Yeah I have seen those functions, but they are quite bloated in my opnion. Is there any way of getting the resource id without modifying sockets? "Wez Furlong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On 9/11/05, RG <[EMAIL PROTECTED]> wrote: > Well, I've improved the socket_acce

Re: [PHP-DEV] Zend resources

2005-09-11 Thread Wez Furlong
On 9/11/05, RG <[EMAIL PROTECTED]> wrote: > Well, I've improved the socket_accept and socket_connect functions and I've > name them socketi_*. socketi_accept returns the IP as well as the port > number, and socket_connect has a timeout function. Have you seen stream_socket_server(), stream_socket_

Re: [PHP-DEV] Zend resources

2005-09-11 Thread RG
"Wez Furlong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] The module whose resources you are accessing needs to export a function that will give you the list id, and also publish their structure layout in a header file. Just out of interest, what functions are in your extension?

Re: [PHP-DEV] Zend resources

2005-09-11 Thread Wez Furlong
The module whose resources you are accessing needs to export a function that will give you the list id, and also publish their structure layout in a header file. Just out of interest, what functions are in your extension? --Wez. On 9/11/05, RG <[EMAIL PROTECTED]> wrote: > I've created a new mod