Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:883 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40618 invoked by uid 1007); 13 Apr 2003 04:16:45 -0000 Message-ID: <20030413041645.40617.qmail@pb1.pair.com> To: internals@lists.php.net Reply-To: "l0t3k" References: <20030413040828.37736.qmail@pb1.pair.com> Date: Sun, 13 Apr 2003 00:16:55 -0400 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Posted-By: 67.34.138.99 Subject: Re: PHP5 and zend_parse_parameters From: cshmoove@bellsouth.net ("l0t3k") 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" 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 > > > l0t3k > >