Re: Exceptions instead of Fatal Error when calling non existent method?

From: Date: Mon, 31 Dec 2007 11:43:48 +0000
Subject: Re: Exceptions instead of Fatal Error when calling non existent method?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-34291@lists.php.net to get a copy of this message
>What is wrong with __call() ? >See: > > http://www.php.net/manual/en/language.oop5.overloading.php Hi! Yes, I'm aware of call() but it's very slow. Also it's not feasible to have *all* my classes extend a base class with the a call containing a throw InvalidMethodException, and what if I need to use 3rd party libraries that make use of call in some other way. __call() is a hack, that, at best, work 50% of the time. Regards, Fredrik.

« previous php.internals (#34291) next »