Re: [PHP-DEV] understanding resources

2002-06-13 Thread Alan Knowles
ce" is just >> >> >a > > >>name that will be displayed if Zend cannot find your resource, and >>le_resource is the resource type you got back when you registered the >>resource destructor. >> >> > >- Original Message - >From

Re: [PHP-DEV] understanding resources

2002-06-13 Thread fabwash
ot; is just a > name that will be displayed if Zend cannot find your resource, and > le_resource is the resource type you got back when you registered the > resource destructor. - Original Message - From: "fabwash" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]&

Re: [PHP-DEV] understanding resources

2002-06-13 Thread fabwash
http://www.php.net/manual/en/zend.variables.resource.php will be a starting point. Basically you want to do this: 1) Create a destruction handler for your resource: void my_destruction_handler(zend_rsrc_list_entry *rsrc TSRMLS_DC) { } 2) Register the destruction handler: le_resource = zen