Re: New exceptions mechanism

From: Date: Tue, 03 Feb 2004 16:34:39 +0000
Subject: Re: New exceptions mechanism
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-7511@lists.php.net to get a copy of this message
On Tue, Feb 03, 2004 at 04:22:14PM -0000, Stephane Drouard wrote : > == Quote from Markus Fischer (mfischer@gjat.josefine.at)'s article > > At least, saying 'InstantiateMe->' looks wrong to me as I'm calling > > 'StaticClass::' actually. > > You have to declare your method as static: > > <?php > class StaticClass { > static function staticMethod() { > throw new Exception("example"); > } > } > ?> Thank you. Though I've read the zend-engine-2.php page this must have slipped through. However, shouldn't the context be enough, from which a function is called, so the stack trace displays the information right? - Markus

« previous php.internals (#7511) next »