|  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
 [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: Sat Jul 24 04:01:23 2021 UTC