PHP 4.0 Bug #10439 Updated: relative chdir from root doesn´t work

From: Date: Wed, 02 May 2001 20:24:45 +0000
Subject: PHP 4.0 Bug #10439 Updated: relative chdir from root doesn´t work
Groups: php.dev 
Request: Send a blank email to php-dev+get-53445@lists.php.net to get a copy of this message
ID: 10439 User Update by: php@gustl.net Old-Status: Feedback Status: Open Bug Type: *Directory/Filesystem functions Description: relative chdir from root doesn´t work No, new version 4.0.5 didn't solve my problem, testesd under win98. Previous Comments: --------------------------------------------------------------------------- [2001-04-30 09:35:24] andi@php.net Works fine in latest CVS under NT. Please try 4.0.5 which should be released today and report back if your problem has been solved. --------------------------------------------------------------------------- [2001-04-22 06:54:22] php@gustl.net On w98 and w98se it is not possible to change from root directory (eg. c:) to a relative subdirectory (e.g. windows). There is a delay of about 1 second. The same when accessing file functions (eg. is_dir, filesize) on filenames in the root directory without path (e.g. filesize ("msdos.sys"), no result is returned. Try this script: <?PHP function mychdir ($text, $dir, $works) { echo "$text '$dir': "; flush(); chdir ($dir); echo "<font color=". ($works ? "green" : "red").">". str_replace ("\", "/", getcwd ())."</FONT><BR>"; flush (); } mychdir ("change to root", "/", true); mychdir ("change to existing full path", "c:/windows/temp", true); mychdir ("change to parent", "..", true); mychdir ("change to relative subdir", "temp", true); mychdir ("change to parent-parent", "../..", true); mychdir ("change to root", "/", true); mychdir ("change to relative subdir from root - does not work (notice the delay)", "windows", false); ?> Gustav Graf --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=10439

« previous php.dev (#53445) next »