{"action":"created","issue":{"url":"https://api.github.com/repos/yiiext/zend-autoloader-component/issues/7","labels_url":"https://api.github.com/repos/yiiext/zend-autoloader-component/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/yiiext/zend-autoloader-component/issues/7/comments","events_url":"https://api.github.com/repos/yiiext/zend-autoloader-component/issues/7/events","html_url":"https://github.com/yiiext/zend-autoloader-component/issues/7","id":118833641,"number":7,"title":"open_basedir error","user":{"login":"GerhardLiebenberg","id":4748276,"avatar_url":"https://avatars.githubusercontent.com/u/4748276?v=3","gravatar_id":"","url":"https://api.github.com/users/GerhardLiebenberg","html_url":"https://github.com/GerhardLiebenberg","followers_url":"https://api.github.com/users/GerhardLiebenberg/followers","following_url":"https://api.github.com/users/GerhardLiebenberg/following{/other_user}","gists_url":"https://api.github.com/users/GerhardLiebenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/GerhardLiebenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GerhardLiebenberg/subscriptions","organizations_url":"https://api.github.com/users/GerhardLiebenberg/orgs","repos_url":"https://api.github.com/users/GerhardLiebenberg/repos","events_url":"https://api.github.com/users/GerhardLiebenberg/events{/privacy}","received_events_url":"https://api.github.com/users/GerhardLiebenberg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-11-25T13:11:29Z","updated_at":"2015-11-26T09:23:38Z","closed_at":"2015-11-25T22:25:36Z","body":"We are hosting with Hetzner.  Yii 1.\r\n\r\nThe following code in YiiBase >> autoload() produces an error:\r\n\r\n\r\n    foreach(self::$_includePaths as $path)\r\n    {\r\n        $classFile=$path.DIRECTORY_SEPARATOR.$className.'.php';\r\n        if(is_file($classFile))  // **** this line produces the error ****\r\n    \t{\r\n\t    \tinclude($classFile);\r\n\t\t    if(YII_DEBUG && basename(realpath($classFile))!==$className.'.php')\r\n\t\t    \tthrow new CException(Yii::t('yii','Class name \"{class}\" does not match class file \"{file}\".', array(\r\n\t\t\t\t'{class}'=>$className,\r\n\t\t\t\t'{file}'=>$classFile,\r\n\t\t\t)));\r\n\t\t    break;\r\n\t    }\r\n    }\r\n\r\nThe error is: \r\nis_file(): open_basedir restriction in effect. File(/usr/share/pear/Zend_Mail_Transport_Smtp.php) is not within the allowed path(s):\r\n\r\nWhat I think might be happening:\r\n1. Zend_Mail_Transport_Smtp is a class, but Yii is first trying to locate it as a file.\r\n2. When it can't find the file in any of the allowed paths, it throws the error before using EZendAutoloader() to try and load it as a class. \r\n\r\nZend_Mail_Transport_Smtp is a class in Zend/Mail/Transport/Smtp.php\r\n\r\nEverything works fine on my local computer with php 5.4, but the server runs php 5.6.\r\nMaybe it is a php issue?"},"comment":{"url":"https://api.github.com/repos/yiiext/zend-autoloader-component/issues/comments/159856198","html_url":"https://github.com/yiiext/zend-autoloader-component/issues/7#issuecomment-159856198","issue_url":"https://api.github.com/repos/yiiext/zend-autoloader-component/issues/7","id":159856198,"user":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T09:23:38Z","updated_at":"2015-11-26T09:23:38Z","body":"what is your open_basedir setting? http://php.net/manual/de/ini.core.php#ini.open-basedir"}}