[PHP-DEV] Re: Fatal error: Call to a member function on a non-object

2008-11-18 Thread Christopher Vogt
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.str

[PHP-DEV] Re: Fatal error: Call to a member function on a non-object

2008-11-17 Thread Christopher Vogt
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: Best regards Christopher -- PHP Internals - PHP Runtime Deve

[PHP-DEV] Re: Fatal error: Call to a member function on a non-object

2008-11-17 Thread Karsten Dambekalns
Hi. Christopher Vogt wrote: I fetch records a database. Sometime it happens that a record does not exist anymore. Let's assume it's a user, then $user will be NULL. echo $user['fullname']; // no error at all, $user['fullname'] === NULL Shouldn't this at least trigger a Notice? Check your err