[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/language/oop5/_autoload.xml?=
From:       Etienne_Kneuss <colder () php ! net>
Date:       2011-08-31 0:22:27
Message-ID: svn-colder-1314750147-315838-2045839946 () svn ! php ! net
[Download RAW message or body]

colder                                   Wed, 31 Aug 2011 00:22:27 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=315838

Log:
Mention that __autoload is somehow outdated

Changed paths:
    U   phpdoc/en/trunk/language/oop5/autoload.xml

Modified: phpdoc/en/trunk/language/oop5/autoload.xml
===================================================================
--- phpdoc/en/trunk/language/oop5/autoload.xml	2011-08-30 22:59:42 UTC (rev 315837)
+++ phpdoc/en/trunk/language/oop5/autoload.xml	2011-08-31 00:22:27 UTC (rev 315838)
@@ -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.
   </para>
+  <tip>
+   <para>
+    <function>spl_autoload_register</function> provides a more flexible
+    alternative for autoloading classes. For this reason, using
+    <function>__autoload</function> is discouraged and may be deprecated or
+    removed in the future.
+   </para>
+  </tip>
   <note>
    <para>
     Prior to 5.3.0, exceptions thrown in the __autoload function could not be



-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic