|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-11-05 06:34 UTC] stas@php.net
[2000-11-05 16:15 UTC] kjackson at gpu dot srv dot ualberta dot ca
[2000-12-07 12:03 UTC] sniper@php.net
[2003-05-19 21:32 UTC] usenet0 at malkusch dot de
[2012-06-24 15:17 UTC] nat at nath dot is
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 18 22:00:01 2025 UTC |
Fox example, the current script is "/dir1/dir2/test.php"... register_shutdown_function("shutDown"); $cwd = getcwd(); function shutDown() { global $cwd; $fp = fopen("/dir1/dir2/temp.txt", "w"); fwrite($fp, $cwd."\n".getcwd()); fclose($fp); } Run it and view "temp.txt". You will find that the current working directory changes from "/dir1/dir2/" to "/". This was not the case in php 3.0.8, and I presume to be a bug.