ID: 49417
Updated by: [email protected]
Reported By: info at libertydesign dot de
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: Windows Vista
PHP Version: 5.3.0
New Comment:
Symbolic links did not work at all with 5.2, junctions did (luckily).
But the issues related to this change are in #48746.
Mark as bogus (duplicate and almost all issues are fixed in svn
already). You can try a snapshot as well.
Previous Comments:
------------------------------------------------------------------------
[2009-08-30 15:20:43] info at libertydesign dot de
Description:
------------
Symbolic links under Windows Vista doesnt work as expected anymore when
using PHP 5.3 in combination with Apache 2.2.12.
See Code below.
Resolving to Base.php works. But using BASE_DIR in Base.php itself
causes
Warning:
require_once(C:\localhost\htdocs\page/lib/base/Database.class.php)
[function.require-once]: failed to open stream: No such file or
directory in C:\localhost\htdocs\page/lib/base/Base.php on line 7
Fatal error: require_once() [function.require]: Failed opening required
'C:\localhost\htdocs\page/lib/base/Database.class.php'
(include_path='.;C:\localhost\php\pear\') in
C:\localhost\htdocs\page\lib\base\Base.php on line 7
but sometimes it works, than i reload and it doesn't work again.
I don't know why. With PHP 5.2.9 it works as expected.
Reproduce code:
---------------
/* in C:\localhost\page/index.php */
// something like C:\localhost\page/
define('BASE_DIR', dirname(__FILE__).'/');
// the base dir is a symbolic link to C:\localhost\_base/
require_once(BASE_DIR.'lib/base/Base.php');
/* in C:\localhost\_base/Base.php */
require_once(BASE_DIR.'lib/base/Database.php');
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49417&edit=1