#28952 [Opn->Bgs]: class_exists() still calls __autoload()

From: Date: Thu, 01 Jul 2004 04:33:11 +0000
Subject: #28952 [Opn->Bgs]: class_exists() still calls __autoload()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-61585@lists.php.net to get a copy of this message
ID: 28952 Updated by: curt@php.net Reported By: jonathan dot hawk at hungrywolf dot net -Status: Open +Status: Bogus Bug Type: Zend Engine 2 problem Operating System: Windows 2000 PHP Version: 5CVS-2004-06-28 (dev) New Comment: Just add a comment to the bug, don't open a new duplicate one. Previous Comments: ------------------------------------------------------------------------ [2004-06-28 22:08:09] jonathan dot hawk at hungrywolf dot net Description: ------------ There is another bug report for this issue marked closed: http://bugs.php.net/bug.php?id=28333 I pulled the latest Dev copy of PHP5 and noticed this bug is still around. Is this expected behavior for class_exists? To try to include a non-existant class? That doesn't seem right to me. Reproduce code: --------------- function __autoLoad( $class ) { echo "I want to load $class<br />"; } if ( !class_exists("iAmNotHere") ) { echo "Class doesn't exist<br />"; } Expected result: ---------------- Class doesn't exist Actual result: -------------- I want to load myClass Class doesn't exist ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28952&edit=1

« previous php.bugs (#61585) next »