note 84748 deleted from function.unset by danbrown

From: Date: Mon, 28 Jul 2008 18:23:39 +0000
Subject: note 84748 deleted from function.unset by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-142866@lists.php.net to get a copy of this message
Note Submitter: user1 at example1 dot com ---- accidentally using unset instead of unlink will result in an unreported fatal error in PHP Version 5.1.2 <?php //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.

« previous php.notes (#142866) next »