php.net |  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
Votes:8
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: insekticid at gmail dot com
New email:
PHP Version: OS:

 

 [2009-07-14 16:03 UTC] insekticid at gmail dot com
Description:
------------
DocumentRoot "D:\dev\web_trunk" in Apache
in develop I am changin directories via symlink
mklink /d web_trunk web_tag_beta
or
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 127.0.0.1] PHP Fatal error:  Unknown: Failed opening required 'D:/dev/web_trunk/index.php' (include_path='.;D:\\dev\\web_trunk') in Unknown on line 0


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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)
<?php

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

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

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

apache error log
[Tue Aug 04 16:05:35 2009] [error] [client 127.0.0.1] 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] pajoye@php.net
See #48746 for further comments or feedback.
 [2009-09-28 20:45 UTC] pajoye@php.net
.
 [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-2020 The PHP Group
All rights reserved.
Last updated: Fri Dec 04 02:01:23 2020 UTC