note 46967 added to function.register-shutdown-function
| From: | dev at kiwicore dot org | Date: | Thu, 28 Oct 2004 20:21:33 +0000 |
| Subject: | note 46967 added to function.register-shutdown-function | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-79288@lists.php.net to get a copy of this message | ||
Note that in PHP5, it appears that regardless of what the working directory of your script is, when
using register_shutdown_function, the working directory at the time your callback function is
called; will be the machine root (on panther, it's Macintosh HD). I'm not sure if this is
the case on other systems or versions, but it appears to be true on two different installs of PHP5
on macs. I noticed this because any require statements failed, just load whatever you need before
the callback I suppose.
----
Manual Page -- http://www.php.net/manual/en/function.register-shutdown-function.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46967
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46967&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46967&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46967&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46967&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46967&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46967&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46967&report=yes
Search -- http://master.php.net/manage/user-notes.php