#34234 [Opn->Bgs]: document root in __destruction
| From: | sniper@php.net | Date: | Wed, 24 Aug 2005 12:48:46 +0000 |
| Subject: | #34234 [Opn->Bgs]: document root in __destruction | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83943@lists.php.net to get a copy of this message | ||
ID: 34234
Updated by: sniper@php.net
Reported By: ur001 at mail dot ru
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: windows 2000
PHP Version: 5.0.4
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2005-08-24 14:26:01] ur001 at mail dot ru
Description:
------------
Sorry for my English, i'm from Russia
in __destruct():
1) PHP is CGI - all ok
2) PHP as Apache Module - Document Root = Server Root
and i can't get access to my files:
file(), dir(), fopen() doesn't work
("failed to open stream: No such file or directory in...")
Reproduce code:
---------------
function listdir($msg){
print "<hr><b>$msg</b><hr><pre>";
print realpath(".")."\r\n</pre>";
}
class A{
function __construct() {listdir("__construct");}
function __destruct() {listdir("__destruct"); }
function f() {listdir("f()"); }
}
$a=new A();
$a->f();
Expected result:
----------------
--------------------
__construct
--------------------
C:\hosts\web2.ru
--------------------
f()
--------------------
C:\hosts\web2.ru
--------------------
__destruct
--------------------
C:\hosts\web2.ru
Actual result:
--------------
--------------------
__construct
--------------------
C:\hosts\web2.ru
--------------------
f()
--------------------
C:\hosts\web2.ru
--------------------
__destruct
--------------------
C:\Apache\Apache2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34234&edit=1