Re: Fatal error: Call to a member function on a non-object
| From: | Christopher Vogt | Date: | Mon, 17 Nov 2008 10:06:27 +0000 |
| Subject: | Re: Fatal error: Call to a member function on a non-object | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41963@lists.php.net to get a copy of this message | ||
Hi Karsten,
>> echo $user['fullname']; // no error at all, $user['fullname'] === NULL
>>
>> Shouldn't this at least trigger a Notice?
>
> Check your error handling settings, probably warnings/notices are disabled.
reproduce code:
<?php
error_reporting(E_ALL|E_STRICT);
$user = NULL;
echo $user['fullname'];
?>
Best regards
Christopher