ID:               47767
 Updated by:       paj...@php.net
 Reported By:      lukemoynihan at gmail dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         *Directory/Filesystem functions
 Operating System: Windows Vista
 PHP Version:      5.2.9
-Assigned To:      
+Assigned To:      pajoye
 New Comment:

Ok, will see what can be done for symlink. I'm not sure 2k/xp are worst
a hack, but 2k8/vista/win7 have real symlinks support.


Previous Comments:
------------------------------------------------------------------------

[2009-03-25 10:51:01] andrew at mcgl dot co dot nz

Have the same problem on V5.2.8 running on windows XP

------------------------------------------------------------------------

[2009-03-25 02:15:55] lukemoynihan at gmail dot com

FYI: I've tested this on Windows XP, Vista to get the results for 
windows, and Centos 5 for linux results

------------------------------------------------------------------------

[2009-03-25 02:09:11] lukemoynihan at gmail dot com

I can confirm this is a problem using 
http://windows.php.net/downloads/snaps/php-5.3-nts-win32-VC9-x86-
latest.zip  that i downloaded now. 

The problem occurs when the symlink (typically used by Vista/Server 
2008) is a folder or a file, or a folder junction (Used by WinXP/2K) 
is used.

------------------------------------------------------------------------

[2009-03-24 22:55:59] paj...@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



------------------------------------------------------------------------

[2009-03-24 22:43:18] lukemoynihan at gmail dot com

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 this bug report at http://bugs.php.net/?id=47767&edit=1

Reply via email to