|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-01-19 09:05 UTC] jarek at katnik dot pl
Description:
------------
When I run chdir on drive mounted by ClearCase
I get warrning and directory doesn't change.
Reproduce code:
---------------
<?php
//Drive 'R:' is mounted by ClearCase.
chdir('R:');
?>
Expected result:
----------------
workinf directory should change to r:
Actual result:
--------------
Warning: chdir() [function.chdir]: No such file or directory (errno 2)
in {scriptName} on line {lineNumber}
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 18:00:01 2025 UTC |
What makes you think that it is Microsoft or IBM bug? By the way as far as I know ClearCase is developed by Rational Rose not by IBM. I found something intresting which could make some clue. This problem occurs only if I run the script through web server (Apache/1.3.31). From command line the script works fine. The script: <?php print 'Testing hard drive: ' . (chdir('d:')?'ok':'error'); print "\r\n"; print 'Testing ClearCase drive: ' . (chdir('r:')?'ok':'error'); ?> Apache output: Testing hard drive: ok Warning: chdir() [function.chdir]: No such file or directory (errno 2) in e:\www\regrCmd\test.php on line 4 Testing ClearCase drive: error Command line output: E:\www\regrCmd>php test.php Testing hard drive: ok Testing ClearCase drive: ok With best regards JK