ID:               28279
 Updated by:       [EMAIL PROTECTED]
 Reported By:      motion4u at hotmail dot com
-Status:           Open
+Status:           Suspended
-Bug Type:         IIS related
+Bug Type:         Feature/Change Request
 Operating System: Windows 2000 Advanced
 PHP Version:      4.3.6
 New Comment:

Windows versions of PHP don't even have symlink(), readlink(),
linkinfo() or link(), so it can't possibly be crashing.

I'll accept your feature request for NTFS junctions, but can't do
anything about it until we are developing PHP 5.1.


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

[2004-05-05 05:30:06] motion4u at hotmail dot com

Description:
------------
Create and Manipulate NTFS Junction Points doesn't work in PHP but it
was solved by www.sysinternals.com. They also offer the c-code free for
download.

I have tested it and it works very well.

You can download the free source code there:

http://www.sysinternals.com/files/jnctnsrc.zip



Reproduce code:
---------------
$letters = 'abcdefghijklmnopqrstuvwxyz'; 
srand((double) microtime() * 1000000); 
$string = ''; 
for ($i = 1; $i <= rand(4,12); $i++) { 
   $q = rand(1,24); 
   $string = $string . $letters[$q]; 
} 
//----- this part can't work under windows
$handle = opendir($downloaddir); 
while ($dir = readdir($handle)) { 
   if (is_dir($downloaddir . $dir)){ 
     if ($dir != "." && $dir != ".."){ 
         @unlink($downloaddir . $dir . "/" . $filename); 
         @rmdir($downloaddir . $dir); 
     } } } 
closedir($handle); //------
mkdir($downloaddir . $string, 0777); 
// here symlink produce browser crash under windows
symlink($safedir . $filename, $downloaddir . $string . "/" .
$filename); 
Header("Location: ".$downloadURL.$string. "/" . $filename);

Expected result:
----------------
start downloading but produce browser crash



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


-- 
Edit this bug report at http://bugs.php.net/?id=28279&edit=1

Reply via email to