Marek Kilimajer wrote:
> See recent discusion on this list about this behavior. You can find it in the archives if you look for __isset.
I know, I am the author of this recent discussion. Current discussion is an "extension".
> > echo (isset($foo->array) == true ? 'array is set' : 'array is not set'); > > should give you this fatal error: > > Fatal error: Cannot access private property foo::$array in ... >
Yes. I am agree with you.
Add a public property in foo class and replace isset($foo->array) by your public property.
Fred.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php