Re: [PHP] Extending Exception

2010-07-21 Thread Richard Quadling
On 21 July 2010 16:30, Christoph Boget wrote: >> [1] http://us3.php.net/manual/en/migration53.new-features.php > > Thanks for this.  And thanks for your explanation.  I think it would have > been nice for there to have been some mention anywhere near/around example > #2 on http://us3.php.net/manua

Re: [PHP] Extending Exception

2010-07-21 Thread Richard Quadling
On 21 July 2010 16:14, Ashley Sheridan wrote: > On Wed, 2010-07-21 at 11:10 -0400, Christoph Boget wrote: > >> Ok, so taking the sample code that is on the page >> >> http://us3.php.net/manual/en/language.exceptions.extending.php >> >> Literally, just cutting and pasting the code.  When I try to >

Re: [PHP] Extending Exception

2010-07-21 Thread Richard Quadling
On 21 July 2010 16:10, Christoph Boget wrote: > Ok, so taking the sample code that is on the page > > http://us3.php.net/manual/en/language.exceptions.extending.php > > Literally, just cutting and pasting the code.  When I try to > > throw new Exception( 'My Message' ); > > PHP spits out the follo

Re: [PHP] Extending Exception

2010-07-21 Thread Ashley Sheridan
On Wed, 2010-07-21 at 11:10 -0400, Christoph Boget wrote: > Ok, so taking the sample code that is on the page > > http://us3.php.net/manual/en/language.exceptions.extending.php > > Literally, just cutting and pasting the code. When I try to > > throw new Exception( 'My Message' ); > > PHP spi

[PHP] Extending Exception

2010-07-21 Thread Christoph Boget
Ok, so taking the sample code that is on the page http://us3.php.net/manual/en/language.exceptions.extending.php Literally, just cutting and pasting the code. When I try to throw new Exception( 'My Message' ); PHP spits out the following fatal error: Fatal error: Wrong parameters for Exceptio