|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-05 05:20 UTC] cellog@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 07:00:01 2025 UTC |
Description: ------------ If attempts to instantiate \class\name and class\name are made, autoload is called twice. Reproduce code: --------------- <?php namespace foo; function __autoload($class) { var_dump($class); eval('namespace ' . $GLOBALS['ns'] . ';class ' . $GLOBALS['class'] . '{}'); } spl_autoload_register('foo\__autoload'); $ns = 'test'; $class = 'this'; class_exists('\test\this', true); $a = new \test\this; $a = new test\this;