Re: [PHP-DEV] Exceptions instead of Fatal Error when calling non existent method?

2008-01-03 Thread Derick Rethans
On Mon, 31 Dec 2007, Fredrik Holmström wrote: What I would like to argue/request is that there should be a way to get an exception thrown when you call a non existent method on an object, since it's not possible to catch E_ERROR with a user defined function using set_error_handler() I can't

Re: [PHP-DEV] Exceptions instead of Fatal Error when calling non existent method?

2008-01-02 Thread Sebastian Nohn
Fredrik Holmström wrote: Why do you want this? To allow for true duck typing (which I think fits good into PHP's dynamic nature) without having the risk of your application running into fatal errors and now having to use There are way more profane use cases like nicely handling such errors to

[PHP-DEV] Exceptions instead of Fatal Error when calling non existent method?

2007-12-31 Thread Fredrik Holmström
Hi! I've never posted on internal before, but I've been a long time reader of it. I've been using PHP for a long time, I think it all started back in 2000 sometime, anyway - this is hardly a place to put my entire php biography up for show, so I'll jump right to the action. Ever since PHP5 and

Re: [PHP-DEV] Exceptions instead of Fatal Error when calling non existent method?

2007-12-31 Thread Alain Williams
On Mon, Dec 31, 2007 at 12:28:23PM +0100, Fredrik Holmström wrote: Hi! I've never posted on internal before, but I've been a long time reader of it. I've been using PHP for a long time, I think it all started back in 2000 sometime, anyway - this is hardly a place to put my entire php