RE: [Zend Engine 2] Type hints revisited [IllegalArgumentException instead of E_ERROR]

From: Date: Sat, 29 Mar 2003 22:30:35 +0000
Subject: RE: [Zend Engine 2] Type hints revisited [IllegalArgumentException instead of E_ERROR]
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-487@lists.php.net to get a copy of this message
> > > that it has done. Not running it is simply not an option, I can't even > > > begin to imagine the possible consequences of such an approach! > > > >Well, at the moment, the function is not run either, isn't it? The > >program dies. > > Right. Code assuming that it ran successfully is therefore never > reached. That is fundamentally different from just not running the > function and returning control to the caller. That's > *extremely* dangerous. wouldn't an exception be the absolutely right thing here then ? - just teasing you, i know your point :P harald

« previous php.internals (#487) next »