note 84748 added to function.unset

From: Date: Mon, 28 Jul 2008 15:42:26 +0000
Subject: note 84748 added to function.unset
Groups: php.notes 
Request: Send a blank email to php-notes+get-142854@lists.php.net to get a copy of this message
accidentally using unset instead of unlink will result in an unreported fatal error in PHP Version 5.1.2 <? //turn on display errors //turn on error reporting E_ALL class myClass { function newLogo() { // should have used unlink unset('photos/medium/'.$oldLogo['filename']); } } echo "hello world"; ?> This results in absolutely no output. No errors. Nothing. ---- Server IP: 24.244.141.3 Probable Submitter: 24.244.157.83 ---- Manual Page -- http://www.php.net/manual/en/function.unset.php Edit -- https://master.php.net/note/edit/84748 Del: integrated -- https://master.php.net/note/delete/84748/integrated Del: useless -- https://master.php.net/note/delete/84748/useless Del: bad code -- https://master.php.net/note/delete/84748/bad+code Del: spam -- https://master.php.net/note/delete/84748/spam Del: non-english -- https://master.php.net/note/delete/84748/non-english Del: in docs -- https://master.php.net/note/delete/84748/in+docs Del: other reasons-- https://master.php.net/note/delete/84748 Reject -- https://master.php.net/note/reject/84748 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#142854) next »