"George Schlossnagle" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> On Friday, June 20, 2003, at 10:04  AM, l0t3k wrote:
> Why don't use just throw an exception yourself in your extension code?
> I'm for errors as exceptions (obviously), but that is only necessary
> for legacy code.  In your own new code, raise an exception if you feel
> like it.
my problem is that its double work. IOW, zend_parse_parameters has already
done a good job of parsing and figuring out what went wrong for what reason.
i'd like to be able to use the error message generated by z_p_p rather than
having to figure things out myself. id also like to suppress its generation
of an error, since it would be redundant in the face of the exception.

i've actually considered creating a parallel zend_parse_parameters which has
the required semantics. i'd like to hear other people's takes first, though.

l0t3k



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

Reply via email to