#40661 [Asn->Opn]: cwd is reset when shutdown handler runs
| From: | jani@php.net | Date: | Mon, 18 Feb 2008 11:24:25 +0000 |
| Subject: | #40661 [Asn->Opn]: cwd is reset when shutdown handler runs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-122390@lists.php.net to get a copy of this message | ||
ID: 40661
Updated by: jani@php.net
Reported By: derick@php.net
-Status: Assigned
+Status: Open
Bug Type: Apache related
Operating System: Linux
PHP Version: 5.2.5
Assigned To: jani
Previous Comments:
------------------------------------------------------------------------
[2008-01-02 17:41:20] development at domain51 dot com
I can confirm this bug still exists on OSX with PHP 5.2.5.
------------------------------------------------------------------------
[2007-10-10 08:52:24] pcdinh at gmail dot com
This bug can be reproducible in PHP 5.2.4 and PHP 5.2.5 dev. When
getcwd() is called in the context of shutdown function, it seems that
getcwd() returns the server root (e.x: apache server installation
directory)
------------------------------------------------------------------------
[2007-07-11 12:35:37] jani@php.net
Making sure this doesn't slip through the cracks..also found in PHP 5.2
------------------------------------------------------------------------
[2007-02-27 15:00:13] derick@php.net
I disagree, there is no reason why PHP can't reset the CWD to the
correct directory when a shutdown handler is run. That is what I would
expect to happen.
------------------------------------------------------------------------
[2007-02-27 14:54:34] tony2001@php.net
See http://bugs.php.net/bug.php?id=36529
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/40661
--
Edit this bug report at http://bugs.php.net/?id=40661&edit=1