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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Thu Dec 05 13:01:31 2024 UTC