Bug #14251: register_shutdown_function bug
| From: | se at e-kazan dot ru | Date: | Tue, 27 Nov 2001 17:04:10 +0000 |
| Subject: | Bug #14251: register_shutdown_function bug | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-71823@lists.php.net to get a copy of this message | ||
From: se@e-kazan.ru
Operating system: Linux Mandrake 8.0
PHP version: 4.1.0
PHP Bug Type: Unknown/Other Function
Bug description: register_shutdown_function bug
Current directory in main program body and into shutdown function is not
same. Sometimes its changes to '/' or something else.
Try to execute this script and reload page some times:
<?
set_time_limit(0);
ignore_user_abort(0);
function Test()
{
echo "Shutdown function: ",
pwd;
};
echo "Body: ", pwd;
register_shutdown_function ("Test");
?><BR>
--
Edit bug report at: http://bugs.php.net/?id=14251&edit=1