note 70928 added to language.oop5.decon

From: Date: Sat, 04 Nov 2006 12:50:36 +0000
Subject: note 70928 added to language.oop5.decon
Groups: php.notes 
Request: Send a blank email to php-notes+get-119392@lists.php.net to get a copy of this message
as reported in bug 34206 the working dir is changed to the server root the best workaround is <?php class Foo { public function bar() { $this->_cwd = getcwd(); } public function __destruct() { chdir($this->_cwd); } } ?> Be aware the booty trap! http://bugs.php.net/bug.php?id=34206 ---- Server IP: 194.153.94.10 Probable Submitter: 151.73.160.90 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.decon.php Edit -- https://master.php.net/note/edit/70928 Del: integrated -- https://master.php.net/note/delete/70928/integrated Del: useless -- https://master.php.net/note/delete/70928/useless Del: bad code -- https://master.php.net/note/delete/70928/bad+code Del: spam -- https://master.php.net/note/delete/70928/spam Del: non-english -- https://master.php.net/note/delete/70928/non-english Del: in docs -- https://master.php.net/note/delete/70928/in+docs Del: other reasons-- https://master.php.net/note/delete/70928 Reject -- https://master.php.net/note/reject/70928 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119392) next »