php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14229 function "virtual"
Submitted: 2001-11-26 08:47 UTC Modified: 2002-08-14 13:46 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: project at vrs dot ru Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.0.6 OS: freebsd 4.3-stable
Private report: No CVE-ID: None
 [2001-11-26 08:47 UTC] project at vrs dot ru
Calling the function "virtual" with relative path as a parameter changes current working dirrectory for the calling script.
Example follows:

<!--uuu.php-->
<?php
echo getcwd();
virtual("ssi/uuu.html");
echo getcwd();
?>

<!--ssi/uuu.html-->
<h4>ssi/uuu.html</h4>

Output is:
/usr/home/project/public_html/mb 
ssi/uuu.html
/usr/home/project/public_html/mb/ssi

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-26 08:50 UTC] derick@php.net
Please do not refile a bug report for a problem you already filed. Update the old report instead (which just got closed due to no feedback).

Derick
 [2001-11-26 09:15 UTC] project at vrs dot ru
I cannot update old report becaus of bug in your bugreport script. In previous report I did not suplied password so on attempts to update it I got message

The password you supplied was incorrect.
Something went wrong updating the database.

 [2001-11-26 10:33 UTC] sniper@php.net
As it seems you're able to update this one, let's keep this open then.
I'll bogus the other one. Now, please try the PHP 4.1.0 (not yet officially
released) from:

http://download.php.net/~zeev/php-4.1.0.tar.gz

and let us know whether this happens with it or not.

--Jani

 [2001-11-28 08:03 UTC] project at vrs dot ru
The same result
 [2002-08-14 13:46 UTC] iliaa@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 06:01:33 2024 UTC