mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
22 lines
244 B
PHP
22 lines
244 B
PHP
--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)
|