#45962 [Opn->Bgs]: __destruct use wrong directory

From: Date: Mon, 01 Sep 2008 07:12:31 +0000
Subject: #45962 [Opn->Bgs]: __destruct use wrong directory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128585@lists.php.net to get a copy of this message
ID: 45962 Updated by: jani@php.net Reported By: zodiacxp at web dot de -Status: Open +Status: Bogus Bug Type: Class/Object related Operating System: Vista PHP Version: 5.2.6 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2008-09-01 01:56:02] zodiacxp at web dot de Description: ------------ __destruct seems to change the path Reproduce code: --------------- function __destruct() { file_put_contents("find.me", "foo"); } Expected result: ---------------- I expect that it stay in the path of the script, or the script from in which the object is. Actual result: -------------- It stores the file somewhere else. My PHP path: E:\xammp\php\ MyDocuments: E:\xammp\htdocs\e-workspace\ Found the file in E:\xammp ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45962&edit=1

« previous php.bugs (#128585) next »