|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-10-21 11:51 UTC] johannes@php.net
[2010-10-21 11:55 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2010-10-21 11:55 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Mar 18 21:00:01 2026 UTC |
Description: ------------ class_exists call __autoload every time on non existing classes Test script: --------------- <?php header('Content-Type: text/plain'); function __autoload($class) { var_dump('Autoload '.$class); } for($a=0; $a<10; $a++) { $status = class_exists('foobar'); var_dump($status); } ?> Expected result: ---------------- string(15) "Autoload foobar" bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) Actual result: -------------- string(15) "Autoload foobar" bool(false) string(15) "Autoload foobar" bool(false) string(15) "Autoload foobar" bool(false) string(15) "Autoload foobar" bool(false) string(15) "Autoload foobar" bool(false) string(15) "Autoload foobar" bool(false) string(15) "Autoload foobar" bool(false) string(15) "Autoload foobar" bool(false) string(15) "Autoload foobar" bool(false) string(15) "Autoload foobar" bool(false)