#19546 [Opn->Fbk]: virtual(...) changes current directory
| From: | iliaa@php.net | Date: | Tue, 08 Oct 2002 02:52:28 +0000 |
| Subject: | #19546 [Opn->Fbk]: virtual(...) changes current directory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21772@lists.php.net to get a copy of this message | ||
ID: 19546
Updated by: iliaa@php.net
Reported By: zen@heavengames.com
-Status: Open
+Status: Feedback
Bug Type: Apache related
Operating System: FreeBSD 4.6
PHP Version: 4.2.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2002-09-21 22:46:49] zen@heavengames.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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19546&edit=1