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