Strange PHP autoload issue
问题 I have some method which looks like that public function getTime() { $date = new DateTime(); $date->setTimezone(new DateTimeZone('Europe/Paris')); return $date->format('Y-m-d H:i:s'); } Calling this method from inside file which has autoload function function __autoload($class_name) { global $path; if (file_exists($path['classes'] . ds . 'class.'. $class_name . '.php')) { require_once($path['classes'] . ds . 'class.'. $class_name . '.php'); } else { die($path['classes'] . ds . 'class.'.$class