Re: exceptions instead of errors

From: Date: Sun, 04 May 2003 18:16:02 +0000
Subject: Re: exceptions instead of errors
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-1227@lists.php.net to get a copy of this message
along the lines of this discussion, i had posted a (ignored) message concerning the behaviour of zend_parse_parameters. my point was/is that there should be an extra parameter which determines whether a regular PHP error or exception is raised. otherwise its useless to use in an OO extension (particularly in the case of constructors). if we adopt this approach, i think we'd also need an IllegalArgumentException or somesuch. l0t3k "Marcus Börger" <marcus.boerger@t-online.de> wrote in message news:5.1.0.14.2.20030504021938.09452980@mailbox.rwth-aachen.de... > The following patch: > http://marcus-boerger.de/php/ext/exception.diff > > allows in a short, straight forward and easy way to suppress errors and > optionally throw exceptions instead. This is supposed to be automated > by the try opcode (but that is another discussion). >

« previous php.internals (#1227) next »