cvs: phpdoc /en/language/oop5 autoload.xml
| From: | Jakub Vrana | Date: | Wed, 29 Dec 2004 16:14:56 +0000 |
| Subject: | cvs: phpdoc /en/language/oop5 autoload.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969365662@lists.php.net to get a copy of this message | ||
vrana Wed Dec 29 11:14:56 2004 EDT
Modified files:
/phpdoc/en/language/oop5 autoload.xml
Log:
Exceptions in __autoload cannot be catched (bug #31102)
http://cvs.php.net/diff.php/phpdoc/en/language/oop5/autoload.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/language/oop5/autoload.xml
diff -u phpdoc/en/language/oop5/autoload.xml:1.4 phpdoc/en/language/oop5/autoload.xml:1.5
--- phpdoc/en/language/oop5/autoload.xml:1.4 Fri Oct 29 06:37:20 2004
+++ phpdoc/en/language/oop5/autoload.xml Wed Dec 29 11:14:56 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<sect1 id="language.oop5.autoload">
<title>Autoloading Objects</title>
<para>
@@ -10,11 +10,18 @@
</para>
<para>
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.
</para>
+ <note>
+ <para>
+ Exceptions thrown in __autoload function cannot be catched in the
+ <link linkend="language.exceptions">catch</link> block and result in
fatal
+ error.
+ </para>
+ </note>
<para>
<example>
<title>Autoload example</title>