diff options
| author | Andrey Hristov <andrey@php.net> | 2003-09-30 15:06:05 +0000 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 2003-09-30 15:06:05 +0000 |
| commit | a11645dda8f6e3ad6adaa11340cc5bef6d92ee3d (patch) | |
| tree | 15217db9c79c78cabab67faea23cb7c4bd19a1c4 | |
| parent | 40088d0bbc53010c5f714e6848fc19fff3013d67 (diff) | |
| download | php-git-a11645dda8f6e3ad6adaa11340cc5bef6d92ee3d.tar.gz | |
fix
| -rw-r--r-- | ext/standard/tests/array/007.phpt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/standard/tests/array/007.phpt b/ext/standard/tests/array/007.phpt index 753aced821..02aa084218 100644 --- a/ext/standard/tests/array/007.phpt +++ b/ext/standard/tests/array/007.phpt @@ -2,6 +2,12 @@ Test array_diff and array_diff_assoc behaviour --FILE-- <?php +//-=-=-=-=- +$a = array(); +$b = 3; +$c = array(5); +array_diff($a, $b, $c); +//-=-=-=-=-=- $a = array(1,"big"=>2,3,6,3,5,3,3,3,3,3,3,3,3,3,3); $b = array(2,2,3,3,3,3,3,3,3,3,3,3,3,3,3); $c = array(-1,1); @@ -127,6 +133,7 @@ var_dump(array_udiff_assoc($a, $b, "comp_func_cr")); ?> --EXPECTF-- +Warning: array_diff(): Argument #2 is not an array in %s $a=array ( 0 => 1, 'big' => 2, |
