From 7137ccc0fdbf158b97872772dd6a989f32f50365 Mon Sep 17 00:00:00 2001 From: Etienne Kneuss Date: Wed, 31 Aug 2011 00:22:27 +0000 Subject: [PATCH] Mention that __autoload is somehow outdated git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@315838 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/autoload.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/language/oop5/autoload.xml b/language/oop5/autoload.xml index 2efb956355..be5e3bbda2 100644 --- a/language/oop5/autoload.xml +++ b/language/oop5/autoload.xml @@ -15,6 +15,14 @@ defined yet. By calling this function the scripting engine is given a last chance to load the class before PHP fails with an error. + + + spl_autoload_register provides a more flexible + alternative for autoloading classes. For this reason, using + __autoload is discouraged and may be deprecated or + removed in the future. + + Prior to 5.3.0, exceptions thrown in the __autoload function could not be