|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36078 chdir on ClearCase drive
Submitted: 2006-01-19 09:05 UTC Modified: 2006-01-20 10:47 UTC
From: jarek at katnik dot pl Assigned:
Status: Not a bug Package: Directory function related
PHP Version: 5.1.2 OS: Windows XP Pro SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
35 + 5 = ?
Subscribe to this entry?

 [2006-01-19 09:05 UTC] jarek at katnik dot pl
When I run chdir on drive mounted by ClearCase
I get warrning and directory doesn't change.

Reproduce code:
    //Drive 'R:' is mounted by ClearCase.

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}


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-19 09:08 UTC]
Blame Microsoft..or IBM. Not PHP bug.
 [2006-01-20 10:10 UTC] jarek at katnik dot pl
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:
    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
 [2006-01-20 10:47 UTC]
Duplicate of bug #35691.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Jun 10 07:03:37 2023 UTC