|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10874 getcwd() always return empty string.
Submitted: 2001-05-15 05:42 UTC Modified: 2001-05-16 07:53 UTC
From: artem at osp dot ru Assigned:
Status: Closed Package: Directory function related
PHP Version: 4.0.5 OS: Linux Redhat7.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: artem at osp dot ru
New email:
PHP Version: OS:


 [2001-05-15 05:42 UTC] artem at osp dot ru
 echo "'".getcwd()."'";


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-15 05:48 UTC]
Cannot recreate this on any system with current CVS.
 [2001-05-15 05:55 UTC]
I can't reproduce this too.

What SAPI are you using (Which webserver, and CGI or Module)?

 [2001-05-15 06:26 UTC] artem at osp dot ru
Apache, static module.

see result of this script

 echo "pwd: '".`pwd`."'<br>";
 echo "getcwd: '".getcwd()."'<br>";

 [2001-05-16 00:29 UTC]
I can't reproduce this either.
Please try latest snapshot from


 [2001-05-16 03:46 UTC] artem at osp dot ru
Ok. I tryed latest snapshot from
It doesn't have this bug.
I recompiled 4.0.5 - it has bug.

see difference:

 [2001-05-16 07:53 UTC]
Ok, so it fixed then.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Aug 06 02:01:24 2021 UTC