note 87087 added to function.getcwd

From: Date: Wed, 19 Nov 2008 01:37:37 +0000
Subject: note 87087 added to function.getcwd
Groups: php.notes 
Request: Send a blank email to php-notes+get-146683@lists.php.net to get a copy of this message
It appears there is a change in functionality in PHP5 from PHP4 when using the CLI tool. Here is the example: - cd /tmp cat > foo.php << END <?php print getcwd() . "\n"; ?> END cd / php -q /tmp/foo.php PHP4 returns /tmp PHP5 returns / Something to be aware of. ---- Server IP: 203.88.112.190 Probable Submitter: 203.20.195.54 ---- Manual Page -- http://www.php.net/manual/en/function.getcwd.php Edit -- https://master.php.net/note/edit/87087 Del: integrated -- https://master.php.net/note/delete/87087/integrated Del: useless -- https://master.php.net/note/delete/87087/useless Del: bad code -- https://master.php.net/note/delete/87087/bad+code Del: spam -- https://master.php.net/note/delete/87087/spam Del: non-english -- https://master.php.net/note/delete/87087/non-english Del: in docs -- https://master.php.net/note/delete/87087/in+docs Del: other reasons-- https://master.php.net/note/delete/87087 Reject -- https://master.php.net/note/reject/87087 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#146683) next »