Arquivos
hhvm/hphp/test/quick/hhir_nonconst_null.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

20 linhas
310 B
PHP

<?php
/*
* This is a small test case for handling comparisons on null SSATmps
* that aren't isConst().
*/
function ar() { return null; }
function foo() {
$x = ar();
echo $x != true;
echo "\n";
echo $x == true;
echo "\n";
echo $x != false;
echo "\n";
echo $x == false;
echo "\n";
}
foo();