mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
13 lines
188 B
PHP
13 lines
188 B
PHP
--TEST--
|
|
Bug #69891: Unexpected array comparison result
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump([1, 2, 3] <=> []);
|
|
var_dump([] <=> [1, 2, 3]);
|
|
var_dump([1] <=> [2, 3]);
|
|
--EXPECT--
|
|
int(1)
|
|
int(-1)
|
|
int(-1)
|