#45962 [NEW]: __destruct use wrong directory
| From: | zodiacxp at web dot de | Date: | Mon, 01 Sep 2008 01:56:03 +0000 |
| Subject: | #45962 [NEW]: __destruct use wrong directory | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-128583@lists.php.net to get a copy of this message | ||
From: zodiacxp at web dot de
Operating system: Vista
PHP version: 5.2.6
PHP Bug Type: Class/Object related
Bug description: __destruct use wrong directory
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 bug report at http://bugs.php.net/?id=45962&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45962&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45962&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45962&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45962&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45962&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45962&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45962&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45962&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45962&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45962&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45962&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45962&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45962&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45962&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45962&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45962&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45962&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45962&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45962&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45962&r=mysqlcfg