hello Marcus,

well, i knew for zend_try but i hoped that they could do something for user
exception. ( i saw a piece of code in soap.c)

unfortunately, my problem is the same: catch user exception or at least,
know if an exception is thrown.
I read zend_exception.c line by line ( word by word :) ), and I wonder
whether it is possible to do something with zend_throw_exception_hook ? (
but I don't think ...)

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 !! )

regards

fred



----- Original Message -----
From: "Marcus Boerger" <[EMAIL PROTECTED]>
To: "Frédéric LECOINTRE" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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
>
>

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to