#32355 [NEW]: Directory-access with dirname

From: Date: Thu, 17 Mar 2005 18:18:02 +0000
Subject: #32355 [NEW]: Directory-access with dirname
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75444@lists.php.net to get a copy of this message
From: eisbrenner at gid-gmbh dot de Operating system: Windows / All Webserver PHP version: 4.3.10 PHP Bug Type: Feature/Change Request Bug description: Directory-access with dirname Description: ------------ If, the copy-function is called with copy (dirname(__FILE__) . '/anyname', '/path/to/new/place'); on windows-systems thtis will result in i.e. copy (c:\temp\my_subdir/anyname .... this is not handled correctly, so the file won't be copied. it's not just related to 4.3.10, 4.3.x, 4.2.x, maybe elder versions. for solutions, that should work independet to the OS installed it's necassary to use copy (str_replace("\\", "/", dirname(__FILE__)) . '/anyname', '/path/to/new/place'); instead. it would be nice not to need this. or is there an undocumented parameter for windows to get slash instead of the BS ? same behaviour with move_uploaded_file, move. include works fine without str_replace. Reproduce code: --------------- see description -- Edit bug report at http://bugs.php.net/?id=32355&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32355&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32355&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32355&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32355&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32355&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32355&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32355&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32355&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32355&r=support Expected behavior: http://bugs.php.net/fix.php?id=32355&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32355&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32355&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32355&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32355&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32355&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32355&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32355&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32355&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32355&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32355&r=mysqlcfg

« previous php.bugs (#75444) next »