Zend Framework

cannot load files using Zend_Loader::loadFile in windows especially in 64bit

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5.2
  • Fix Version/s: 1.8.0
  • Component/s: Zend_Loader
  • Labels:
    None

Description

a full path in windows "C:\somewhere\somefile.php" fails the security check, and cannot be used to load files using the Zend_loader (cause of the ":" character)

moreover, in windows 64bit, if files are located under the Program Files directory - which is called "Program files (86)" in the 64bit version - it fails as well (cause of the "(" character)

Activity

Hide
Ralph Schindler added a comment -

I am finding this same issue right now. Code to reproduce:

<?php

require_once 'Zend/Loader.php';

try {
    Zend_Loader::loadFile('C:\\Program Files\\PHP\\PEAR\\Zend\\Version.php');
    echo Zend_Version::VERSION;
} catch (Exception $e) {
    echo 'ERROR DETECTED: ' . $e->getMessage();  // will result in ERROR DETECTED: Security check: Illegal character in filename
}

Deferring to Wil and Matthew on a solution to this. Seems pretty major.

Show
Ralph Schindler added a comment - I am finding this same issue right now. Code to reproduce:
<?php

require_once 'Zend/Loader.php';

try {
    Zend_Loader::loadFile('C:\\Program Files\\PHP\\PEAR\\Zend\\Version.php');
    echo Zend_Version::VERSION;
} catch (Exception $e) {
    echo 'ERROR DETECTED: ' . $e->getMessage();  // will result in ERROR DETECTED: Security check: Illegal character in filename
}
Deferring to Wil and Matthew on a solution to this. Seems pretty major.
Hide
Matthew Weier O'Phinney added a comment -

Fixed in trunk with r12772; presents a minor change in functionality, so will not release until 1.8.0.

Show
Matthew Weier O'Phinney added a comment - Fixed in trunk with r12772; presents a minor change in functionality, so will not release until 1.8.0.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: