1--TEST--
2Test array_diff() function : usage variations - binary safe checking
3--FILE--
4<?php
5/*
6 * Test behaviour of array_diff() function with binary input
7 */
8
9echo "*** Testing array_diff() : usage variations ***\n";
10
11
12$array1 = array( b"1",
13                 b"hello",
14                 "world",
15                 "str1" => "hello",
16                 "str2" => "world");
17
18$array2 = array( b"1" => 'hello',
19                 b"world",
20                 "hello",
21                 'test');
22
23var_dump(array_diff($array1, $array2));
24var_dump(array_diff($array2, $array1));
25
26echo "Done";
27?>
28--EXPECT--
29*** Testing array_diff() : usage variations ***
30array(1) {
31  [0]=>
32  string(1) "1"
33}
34array(1) {
35  [4]=>
36  string(4) "test"
37}
38Done
39