bug69891.phpt 188 B

123456789101112
  1. --TEST--
  2. Bug #69891: Unexpected array comparison result
  3. --FILE--
  4. <?php
  5. var_dump([1, 2, 3] <=> []);
  6. var_dump([] <=> [1, 2, 3]);
  7. var_dump([1] <=> [2, 3]);
  8. --EXPECT--
  9. int(1)
  10. int(-1)
  11. int(-1)