note 89439 added to language.types.null
| From: | kshegunov at gmail dot com | Date: | Sun, 08 Mar 2009 00:12:05 +0000 |
| Subject: | note 89439 added to language.types.null | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-151609@lists.php.net to get a copy of this message | ||
The results of <alexey at gmail dot com> struck me as little suspicious. So I put it to the
test. Here is what I've got:
<?php
class SomeClass
{
function SomeFunction()
{
}
}
var_dump(new SomeClass() == null);
?>
And as I expected the result is:
bool(false)
Tested it on php 5.2.6/WinXP x64
----
Server IP: 217.75.128.29
Probable Submitter: 78.90.43.45
----
Manual Page -- http://www.php.net/manual/en/language.types.null.php
Edit -- https://master.php.net/note/edit/89439
Del: integrated -- https://master.php.net/note/delete/89439/integrated
Del: useless -- https://master.php.net/note/delete/89439/useless
Del: bad code -- https://master.php.net/note/delete/89439/bad+code
Del: spam -- https://master.php.net/note/delete/89439/spam
Del: non-english -- https://master.php.net/note/delete/89439/non-english
Del: in docs -- https://master.php.net/note/delete/89439/in+docs
Del: other reasons-- https://master.php.net/note/delete/89439
Reject -- https://master.php.net/note/reject/89439
Search -- https://master.php.net/manage/user-notes.php