Re: PHP5 and zend_parse_parameters

From: Date: Sun, 13 Apr 2003 04:16:55 +0000
Subject: Re: PHP5 and zend_parse_parameters
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-883@lists.php.net to get a copy of this message
another alternative is to do two things : 1) create a standard PHP IllegalArgument exception 2) create another flag for zend_parse_parameters_ex ( ZEND_PARSE_PARAMS_ERRORS_AS_EXCEPTIONS) when this flag is set, an IllegalArgument exception is raised with the appropriate message. A FAILURE return value in this instance would let the caller know that the exception was raised. i actually think this is the cleaner way to go. l0t3k "L0t3k" <cshmoove@bellsouth.net> wrote in message news:20030413040828.37736.qmail@pb1.pair.com... > zend_parse_parameters_ex has the "quiet" flag, which helps greatly, but > im left without a nice message to include with my exception. is it possible > for some variation of zend_parse_parameters which passes back the error > message ? id rather not pass back a generic message. or am i just being lazy > <g> > > l0t3k > >

« previous php.internals (#883) next »