mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
31 lines
352 B
PHP
31 lines
352 B
PHP
--TEST--
|
|
Bug #69825 (Short-circuiting failure)
|
|
--FILE--
|
|
<?php
|
|
|
|
print "AND\n";
|
|
var_dump(0 && 1);
|
|
var_dump(0 && 0);
|
|
var_dump(1 && 0);
|
|
var_dump(1 && 1);
|
|
|
|
print "OR\n";
|
|
var_dump(0 || 1);
|
|
var_dump(0 || 0);
|
|
var_dump(1 || 0);
|
|
var_dump(1 || 1);
|
|
|
|
?>
|
|
--EXPECT--
|
|
AND
|
|
bool(false)
|
|
bool(false)
|
|
bool(false)
|
|
bool(true)
|
|
OR
|
|
bool(true)
|
|
bool(false)
|
|
bool(true)
|
|
bool(true)
|
|
|