Hi,
With __autoload you can throw an exception as long as you define the class
requested.
If you don't, the fatal error from the fact the class isn't there is
triggered before the exception and you never see it.
A clutch would be eval-ing an empty class with the same name right before
you t
On Fri, Dec 26, 2008 at 4:46 AM, David Grudl wrote:
> This code throws *Fatal error*: Method test::__toString() must not throw an
> exception
>
> class Test1
> {
> public function __toString()
> {
> throw new Exception;
> }
> }
>
> The same problem causes throwing exceptions in functio
On 26 Dec 2008, at 01:46, David Grudl wrote:
This code throws *Fatal error*: Method test::__toString() must not
throw an exception
class Test1
{
public function __toString()
{
throw new Exception;
}
}
The same problem causes throwing exceptions in function __autoload.
I think th