php-src/Zend/tests/or_001.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

30 lines
326 B
PHP
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--TEST--
bitwise OR and strings
--FILE--
<?php
$s = "323423";
$s1 = "2323.555";
var_dump($s | $s1);
var_dump($s1 | $s);
$s = "some";
$s1 = "test";
var_dump($s | $s1);
$s = "some";
$s |= "test";
var_dump($s);
echo "Done\n";
?>
--EXPECT--
string(8) "3337>755"
string(8) "3337>755"
string(4) "wou"
string(4) "wou"
Done