#14251 [Ctl->Ana]: register_shutdown_function bug
| From: | andrei@php.net | Date: | Fri, 20 Sep 2002 20:57:07 +0000 |
| Subject: | #14251 [Ctl->Ana]: register_shutdown_function bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19909@lists.php.net to get a copy of this message | ||
ID: 14251
Updated by: andrei@php.net
Reported By: se@e-kazan.ru
-Status: Critical
+Status: Analyzed
Bug Type: Scripting Engine problem
Operating System: Linux Mandrake 8.0
PHP Version: 4.1.0
Assigned To: zeev
Previous Comments:
------------------------------------------------------------------------
[2002-09-19 21:07:31] sniper@php.net
IIRC (!) this was some problem with the cwd funcs in TSRM.
Can't remember now what exactly it was..
(it works in windows but not in *nix)
------------------------------------------------------------------------
[2002-09-19 11:08:13] zeev@php.net
This isn't related to #11831.
It has to do with the fact that by the time we're shutting down, we're
no longer in the request context, but rather, in Apache's shutdown
context. Apache is probably changing directory to / at this stage.
I'm not sure why this is tagged as critical, I'm not sure whether this
should be 'fixed'. My recommendation is to move it to 'Analyzed'
status.
------------------------------------------------------------------------
[2002-09-03 18:35:56] sniper@php.net
Another one related to #11831
------------------------------------------------------------------------
[2002-08-05 16:48:02] john@vbulletin.com
I have reproduced this too on PHP 4.2.2 and Linux RH 6.2. However it
does not seem to occur in Windows.
Workaround by putting getcwd() into a global variable before shutdown
then using chdir() in the shutdown_function.
------------------------------------------------------------------------
[2001-11-27 12:48:47] sniper@php.net
Reproduced. Seems like cwd changes to / always.
------------------------------------------------------------------------
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/14251
--
Edit this bug report at http://bugs.php.net/?id=14251&edit=1