|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19546 virtual(...) changes current directory
Submitted: 2002-09-21 22:46 UTC Modified: 2002-10-23 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: zen at heavengames dot com Assigned:
Status: No Feedback Package: Apache related
PHP Version: 4.2.2 OS: FreeBSD 4.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: zen at heavengames dot com
New email:
PHP Version: OS:


 [2002-09-21 22:46 UTC] zen at heavengames dot com
virtual() changes current working directory.

Apache 1.3.26 + PHP 4.2.2

To replicate:
echo getcwd();    // prints "/home/"
echo getcwd();    // prints "/home/"

Expected Behavior:
The second getcwd call should still report "/home/" as the current directory.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-07 21:52 UTC]
Please try using this CVS snapshot:
For Windows:

Cannot replicate in 4.3.0-dev.
 [2002-10-23 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 22 13:01:29 2024 UTC