From aa3fe5066b037444db29087b297f6404277c4db3 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 29 Dec 2004 16:14:56 +0000 Subject: [PATCH] Exceptions in __autoload cannot be catched (bug #31102) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@175911 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/autoload.xml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/language/oop5/autoload.xml b/language/oop5/autoload.xml index dad7166c30..a94169f902 100644 --- a/language/oop5/autoload.xml +++ b/language/oop5/autoload.xml @@ -1,5 +1,5 @@ - + Autoloading Objects @@ -10,11 +10,18 @@ In PHP 5, this is no longer necessary. You may define an - &link.autoload; function which is automatically + __autoload function which is automatically called in case you are trying to use a class which hasn't been defined yet. By calling this function the scripting engine is given a last chance to load the class before PHP fails with an error. + + + Exceptions thrown in __autoload function cannot be catched in the + catch block and result in fatal + error. + + Autoload example