note 84748 modified in function.unset by danbrown
| From: | danbrown@php.net | Date: | Mon, 28 Jul 2008 18:23:10 +0000 |
| Subject: | note 84748 modified in function.unset by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142865@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
<?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.
--was--
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.
http://php.net/manual/en/function.unset.php