ID: 47830 Updated by: scott...@php.net Reported By: myselfasunder at gmail dot com -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Ubuntu PHP Version: 5.2.9 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. >From the register_shutdown_function manual page. "Note: Working directory of the script can change inside the shutdown function under some web servers, e.g. Apache. " Previous Comments: ------------------------------------------------------------------------ [2009-03-29 18:47:54] myselfasunder at gmail dot com Description: ------------ Running under Apache 2. Error does not occur under the CLI. Registered a shutdown function (register_shutdown_function()), and while the shutdown function is executing, getcwd() returns '/'. Reproduce code: --------------- function shuttingdown() { print(getcwd() . "<br>"); } register_shutdown_function('shuttingdown'); Expected result: ---------------- The absolute path-name of the current working directory. Actual result: -------------- '/' (always, apparently) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47830&edit=1