hi Marcus, Sorry for the post ! well, with zend_try, i want to catch an exception (throwed in user space or internal). if I can't use it , how I can recover exception ?
thanks fred ----- Original Message ----- From: "Marcus Boerger" <[EMAIL PROTECTED]> To: "Frédéric LECOINTRE" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, September 09, 2004 10:43 AM Subject: Re: [PHP-DEV] __set __get __call in internal class > Hello Frédéric, > > first of all never rply to another topic with a new one that confuses > our mail clients. > > Thursday, September 9, 2004, 2:05:11 AM, you wrote: > > > hi all, > > > 1) > > > i have to implement __set and __get methods in internal class but, actually, > > methods declared in the class function entry aren't recognized > > automatically like __construct, __destruct and __clone. > > > i can see that in zend_register_functions ( zend_API.c # from l. 1308) > > > to solve this problem, i do this when register the class : > > _______ > > > if ( zend_hash_find( &myobject_ce->function_table, ZEND_SET_FUNC_NAME , > > strlen(ZEND_SET_FUNC_NAME) +1 , (void **) &f_set)==SUCCESS) > > myobject_ce->__set = f_set; > > don't do "strlen(ZEND_SET_FUNC_NAME) +1" bt instead do "sizeof(ZEND_SET_FUNC_NAME)" > > _______ > > > it work fine now ( with sub class, overloading, ... ) but i think, perhaps, > > it would be a good idea to make that automaically like the others ? > > yep, i'll lokk into it. The functions does more things wrong. > > > 2 ) > > Another question, i try to use the zend_try ... macro but i have this error > > when i compile it with visual c++ (w2k). > > > error LNK2001: unresolved external symbol _executor_globals_id > > > error come from EG(***) but i can't find solution ! any help ? > > do not use that macro it's for the engine itself only. > > > 3 ) > > > for the Zend people, is [EMAIL PROTECTED] still active ? > > i want to register but no response ... > > > regards > > > > Frédéric LECOINTRE > > > > > -- > Best regards, > Marcus mailto:[EMAIL PROTECTED] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php