From 1836f1a4ccb06169dd0c275e9dd5e429b261ce9a Mon Sep 17 00:00:00 2001 From: Curt Zirzow Date: Fri, 2 Jul 2004 03:03:52 +0000 Subject: [PATCH] Define php5 autoload behaviour, Closes bug #28333. And Example. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@162510 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/classobj/functions/class-exists.xml | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/reference/classobj/functions/class-exists.xml b/reference/classobj/functions/class-exists.xml index d3a1c9ce1b..0a8cb31e5e 100644 --- a/reference/classobj/functions/class-exists.xml +++ b/reference/classobj/functions/class-exists.xml @@ -1,5 +1,5 @@ - + @@ -11,12 +11,48 @@ boolclass_exists stringclass_name + boolautoload + + + The autoload parameter was added in PHP 5 + + This function returns &true; if the class given by class_name has been defined, &false; otherwise. + + class_exists will attempt to call __autoload by + default, if you don't want class_exists to + call __autoload(), you can set the paramater autoload + to &false;. + + + + <parameter>autoload</parameter> parameter example + + +]]> + + + See also get_declared_classes.