mirror of
https://github.com/php/php-src.git
synced 2024-10-04 16:26:13 +00:00
6d8760677d
- altered EXPECT for parser errors. This may or may not be a Good Thing.
30 lines
331 B
PHP
30 lines
331 B
PHP
--TEST--
|
||
bitwise OR and strings
|
||
--FILE--
|
||
<?php
|
||
|
||
$s = b"323423";
|
||
$s1 = b"2323.555";
|
||
|
||
var_dump($s | $s1);
|
||
var_dump($s1 | $s);
|
||
|
||
$s = b"some";
|
||
$s1 = b"test";
|
||
|
||
var_dump($s | $s1);
|
||
|
||
$s = b"some";
|
||
$s |= b"test";
|
||
|
||
var_dump($s);
|
||
|
||
echo "Done\n";
|
||
?>
|
||
--EXPECT--
|
||
string(8) "3337>755"
|
||
string(8) "3337>755"
|
||
string(4) "wou"
|
||
string(4) "wou"
|
||
Done
|