From: lukemoynihan at gmail dot com
Operating system: Windows Vista
PHP version: 5.2.9
PHP Bug Type: *Directory/Filesystem functions
Bug description: include_once does not resolve windows symlinks or junctions
Description:
------------
PHP does not resolve symlinks (On Vista) or Junctions (windows 2000)
on windows when including files
Create index.php and test.php as shown below, then create a symlink
on Vista using:
mklink test2.php test.php
Note: this test case illustrates symlinks, but that Junctions created
on NTFS volumes also have this problem.
Reproduce code:
---------------
index.php:
<?php
include_once('test.php');
include_once('test2.php');
include_once('test2.php');
test.php:
<?php
echo "i'm included ";
Expected result:
----------------
Expected on Linux:
i'm included
Expected on Windows:
i'm included
Actual result:
--------------
Actual on Linux:
i'm included
Actual on Windows:
i'm included i'm included
--
Edit bug report at http://bugs.php.net/?id=47767&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47767&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47767&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47767&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47767&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=47767&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47767&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=47767&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=47767&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=47767&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=47767&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=47767&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=47767&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=47767&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47767&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47767&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47767&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=47767&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=47767&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=47767&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=47767&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=47767&r=mysqlcfg