|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-05 08:08 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 05:00:02 2025 UTC |
Description: ------------ When the callback functions was called by register_shutdown_function(), ob_start(); the current working directory will be changed to the root directory (such as '/'). Notice: bug found when running the script under web browser. Reproduce code: --------------- <?php function test_cb() { echo getcwd() . "<br>\n"; } register_shutdown_function("test_cb"); test_cb(); ?> Expected result: ---------------- /home/hightman/public_html/my_php4<br> /home/hightman/public_html/my_php4<br> Actual result: -------------- /home/hightman/public_html/my_php4<br> /<br>