Re: Fatal error: Call to a member function on a non-object
| From: | Christopher Vogt | Date: | Tue, 18 Nov 2008 09:49:19 +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-41984@lists.php.net to get a copy of this message | ||
Hej,
>> 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.
I now found it in the documentation os the String type
http://php.net/language.types.string
"Note: Accessing variables of other types using [] or {} silently
returns NULL."
I created a change request: http://bugs.php.net/bug.php?id=46602
Best regards
Christopher