Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.0.0, 4.0.3, 4.1.0
-
None
Description
We use open_basedir per vhost. Normally this works well but with 4.0 there are a few issues.
In kernel/common/template the variable $compatAutoLoadPath defaults to an empty array. When added to $autoLoadPathList this produces an open_basedir PHP warning.
The solution is to remove $compateAutoLoadPath or to remove empty strings from the autoload path.
In lib/ezi18n/classes/ezcodepage.php on line 540 the line '$permissionArray = eZCodePage::permissionSetting();' can return false when there is no cache available. The following line '$cache_dir = $permissionArray['var_directory'] . "/codepages/";' then sets the variable '$cache_dir' to '/codepages/' which triggers another open_basedir warning.
The solution this time is to accommodate the 'false' value passed back and not use the file_exists call.
Regards,
Paul
Steps to reproduce
This occurs on a basic install.
Attachments
Issue Links
- relates to
-
EZP-12271 eZINI::variableArray() does return array with one empty string
- Closed