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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC