Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:882 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37737 invoked by uid 1007); 13 Apr 2003 04:08:28 -0000 Message-ID: <20030413040828.37736.qmail@pb1.pair.com> To: internals@lists.php.net Reply-To: "l0t3k" Date: Sun, 13 Apr 2003 00:08:39 -0400 Lines: 14 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: PHP5 and zend_parse_parameters From: cshmoove@bellsouth.net ("l0t3k") i have an OOP based extension for PHP5 which also uses exceptions extensively. it would seem more in character with OOP to throw an IllegalArgument exception or some-such when a parameter type does not meet our expectations. otherwise we end up with a tenuous mix of error handling styles. 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