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

Issue Type: Bug Created: 2008-07-26T13:12:52.000+0000 Last Updated: 2008-11-22T09:06:01.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Amit Gottlieb (amit) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Loader

Related issues: Attachments:


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)


Posted by Ralph Schindler (ralph) on 2008-08-23T11:38:03.000+0000

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

<pre class="highlight">

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.

Posted by Matthew Weier O'Phinney (matthew) on 2008-11-22T09:06:01.000+0000

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

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.