Re: [PHP4BETA] Testing ... PHP 4.0RC2 tarball
| From: | Stanislav Malyshev | Date: | Sat, 06 May 2000 13:16:20 +0000 |
| Subject: | Re: [PHP4BETA] Testing ... PHP 4.0RC2 tarball | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-14584@lists.php.net to get a copy of this message | ||
NM>> <? $obj->test="test";
NM>> if (!$obj->test) echo "error";
NM>> echo $obj->test; ?>
NM>>
NM>> Results in "error" which isn't correct. I do not recommend to release
Why do you think it isn't correct? Shouldn't you initialize $obj before
accessing it anyway? It probably should warn about using NULL as an
object, but I'm almost sure it shouldn't be able to use NULL as a valid
object.
--
Stanislav Malyshev stas@zend.com
+972-3-6139665