ID: 34234 Updated by: [EMAIL PROTECTED] 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