php.net |  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
Votes:3
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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: zen at heavengames dot com
New email:
PHP Version: OS:

 

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

Setup:
Apache 1.3.26 + PHP 4.2.2

To replicate:
chdir('/home/heavengames.com/php/');
echo getcwd();    // prints "/home/heavengames.com/php/"
virtual('/includes/html_top.shtml');
echo getcwd();    // prints "/home/heavengames.com/includes/html_top.shtml"

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-07 21:52 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

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-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 03:01:24 2019 UTC