php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28952 class_exists() still calls __autoload()
Submitted: 2004-06-28 22:08 UTC Modified: 2004-07-01 06:33 UTC
From: jonathan dot hawk at hungrywolf dot net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5CVS-2004-06-28 (dev) OS: Windows 2000
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jonathan dot hawk at hungrywolf dot net
New email:
PHP Version: OS:

 

 [2004-06-28 22:08 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-01 06:33 UTC] curt@php.net
Just add a comment to the bug, don't open a new duplicate one.    
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 16:01:27 2024 UTC