Calls to `class_exists` will, by default, call to `__autoload`, which is actually handled by Yii's `autoload`. Anyways, in PHP 5.3 namespace classes, Yii will try to include a file that could not exist, and thus causing warnings like `include(): Failed opening <path> for inclusion`.
A simple check if the file exists before actually trying to include seems like a good idea and is avoiding all those warnings.
* master: (789 commits)
'summaryTagName' and 'emptyCssClass' options added to CBaseListView
Missing entries added to CHANGELOG
'cli' mode detection at 'CConsoleApplication' fixed
Eager loading note added to 'Relational Query Options' docs
Fix CSysLogRoute.php file comment
Fixes#3324: add syslog support
CDbConnection ODBC related fixes before merging
Add ODBC to the requirements checker
Fix#132: CDbConnection now supports ODBC
Better fix for <script async="false"
Fixed#3258Fixed#3283
Remove async from list of Special Attributes so that it is possible to use async=false per issue: #3314
typo fix in guide
COciSchema: read column comments from another schema
Update yii.php
Add changes #3298 to CHANGELOG
Added check for the existence of a link href attribute pager
Added check for the existence of a link href attribute pager
Update yii.php
...
This allows usage of normal class names to be loaded by autoloaders
prepended to the Yii::autoloader()
Should be BC if there is only Yii autoloader and not cause much trouble
when other autoloaders are properly implemented. Works fine with
composer autoloader.
fixes#2777
This commit adds support for loading namespaced classes
with third party autoloaders when using `Yii::import()`
and `Yii::createComponent()`. It means that you no longer
need to explicitly set aliases for each and every root
namespace you want to use in your app, which makes working
with composer much easier.
It uses reflection to autoload the class, preserving backwards
compatibility.
Fixes#2642.
* 'cubrid-database-support' of https://github.com/kadishmal/yii:
Ref: converted spaces to tabs.
Ref: converted spaces to tabs according to Yii coding conventions.
CUBRID Database 9.0 Support.