|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-12-29 11:41 UTC] jani@php.net
[2009-12-30 12:24 UTC] svn@php.net
[2009-12-30 12:24 UTC] rquadling@php.net
[2009-12-30 22:56 UTC] maros dot gajdosik at gmail dot com
[2020-02-07 06:09 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 07:00:01 2025 UTC |
Description: ------------ Function method_exists() is invoking __autoload(), which, in my opinion, is an unwanted behaviour. Sorry, if this has been posted already - tried to search for it without any results. Reproduce code: --------------- <?php // PHP file "my_class.php" class my_class{ public $property = "I'm not a class name!"; } ?> <?php // PHP file #2 function __autoload($class_name) { echo 'Loading: '.$class_name.'<br />'; require_once $class_name.'.php'; } $my_object = new my_class(); method_exists($my_object-> property, 'method'); ?> Expected result: ---------------- Loading: my_class Loading: I am not a class name!