Re: [PHP5] paradox ? Bug ?
| From: | Frédéric Hardy | Date: | Fri, 03 Sep 2004 13:08:35 +0000 |
| Subject: | Re: [PHP5] paradox ? Bug ? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195720@lists.php.net to get a copy of this message | ||
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.