mirror of
https://github.com/php/php-src.git
synced 2025-01-23 20:23:31 +08:00
31 lines
352 B
Plaintext
31 lines
352 B
Plaintext
|
--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)
|
||
|
|