Re: __set __get __call in internal class

From: Date: Sun, 12 Sep 2004 10:18:42 +0000
Subject: Re: __set __get __call in internal class
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-12745@lists.php.net to get a copy of this message
Hello Frédéric, Saturday, September 11, 2004, 9:26:45 PM, you wrote: > hello Marcus, > ... i saw a piece of code in soap.c that extension is not the best place to look at, for it's nature it needs to do very strange things > another way, it's to add a function in zend_exception.c that return 0/1 if > there's an exception... if I can dream ... a copy but i don't know if that > has an impact on the engine. ( note that ZEND_API void > zend_clear_exception(TSRMLS_D): exist !! ) as i told you, now here as a code example: #define ZEND_ACTIVE_EXCEPTION() (EG(exception) != NULL) > regards > fred > ----- Original Message ----- > From: "Marcus Boerger" <helly@php.net> > To: "Frédéric LECOINTRE" <frederic.lecointre@burnweb.net> > Cc: <internals@lists.php.net> > Sent: Friday, September 10, 2004 11:35 PM > Subject: Re: [PHP-DEV] __set __get __call in internal class >> Hello Frédéric, >> >> Friday, September 10, 2004, 1:28:31 PM, you wrote: >> >> > 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 ? >> >> that has nothing in common. the macros are try/catch blocks for c code. >> the php (user space) exceptions are handled by the engine and are stored >> in EG(exception), however you won't be able to handle them. The only >> thing you can do is that if your c code calls another function ir even >> user space function that throws a php exception than EG(exception) is >> set afterwards and in most cases your code (the part after the call) >> should still be executed. >> >> regards >> marcus >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> -- Best regards, Marcus mailto:helly@php.net

« previous php.internals (#12745) next »