summaryrefslogtreecommitdiff
path: root/Zend/tests/xor_001.phpt
blob: 9678af16b5f717fed763a544ecdeb5003c67445b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
XORing arrays
--FILE--
<?php

$a = array(1,2,3);
$b = array();

try {
    $c = $a ^ $b;
} catch (TypeError $e) {
    echo $e->getMessage(), "\n";
}

echo "Done\n";
?>
--EXPECT--
Unsupported operand types: array ^ array
Done