|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48919 include path set to symlinked directory failed
Submitted: 2009-07-14 16:03 UTC Modified: 2009-11-14 01:05 UTC
Avg. Score:4.6 ± 0.5
Reproduced:3 of 4 (75.0%)
Same Version:2 (66.7%)
Same OS:3 (100.0%)
From: insekticid at gmail dot com Assigned:
Status: Not a bug Package: Directory function related
PHP Version: 5.3.0 OS: win32 only - Windows 7 / Vista
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: insekticid at gmail dot com
New email:
PHP Version: OS:


 [2009-07-14 16:03 UTC] insekticid at gmail dot com
DocumentRoot "D:\dev\web_trunk" in Apache
in develop I am changin directories via symlink
mklink /d web_trunk web_tag_beta
mklink /d web_trunk web_trunk_actual

Working on PHP 5.2.10 but fails with PHP 5.3+

from apache error log with symlinked dir and PHP 5.3.1-dev

[Tue Jul 14 17:28:03 2009] [error] [client] PHP Fatal error:  Unknown: Failed opening required 'D:/dev/web_trunk/index.php' (include_path='.;D:\\dev\\web_trunk') in Unknown on line 0


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-23 14:40 UTC] zagser168 at yandex dot ru
I have similar problem for junctions but only if the path to link contains non English characters. include_path contains both link path and linked path. (PHP 5.3.0 release)
 [2009-08-04 14:09 UTC] insekticid at gmail dot com
D:\dev\web_branch\library>mklink /D Zend "..\..\zend_svn\library\Zend"
symbolic link created for Zend <<===>> ..\..\zend_svn\library\Zend

file D:\dev\web_branch\public\index.php
using Zend Framework from D:\dev\web_branch\library\Zend (symlinked dir)

// Define path to application directory
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),

/** Zend_Application */
require_once 'Zend/Application.php';

apache error log
[Tue Aug 04 16:05:35 2009] [error] [client] PHP Warning:  require_once(Zend/Loader/Autoloader.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in D:\\dev\\zend_svn\\library\\Zend\\Application.php on line 73

But there is incorrect path! "D:\\dev\\zend_svn\\library\\Zend\\Application.php"

there have to be "D:\dev\web_branch\library\Zend"!!!
 [2009-09-28 20:26 UTC]
See #48746 for further comments or feedback.
 [2009-09-28 20:45 UTC]
 [2009-11-14 01:05 UTC] insekticid at gmail dot com
I have tested PHP 5.3.1RC4 and it is working well! THX
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 11:01:30 2024 UTC