mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
22 lines
244 B
Plaintext
22 lines
244 B
Plaintext
|
--TEST--
|
||
|
Test whether an object is NULL or not.
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class Bla
|
||
|
{
|
||
|
}
|
||
|
|
||
|
$b = new Bla;
|
||
|
|
||
|
var_dump($b != null);
|
||
|
var_dump($b == null);
|
||
|
var_dump($b !== null);
|
||
|
var_dump($b === null);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
bool(true)
|
||
|
bool(false)
|
||
|
bool(true)
|
||
|
bool(false)
|