Pasindu De Silva wrote:

> Something changed between alpha 1 and 2.
> 
> echo [1, 2, 3] <=> []; // gives the expected result 1 and not 3
> 
> http://3v4l.org/5qFS9
> 
> Guess the documentation should be changed back.

I suggest to leave the documentation as it is.  It is not wrong, the
guarantee to yield negative, positive or zero is usually sufficient, and
there is at least one code path using memcmp()[1] that is not guaranteed
to return -1, 1 or 0.

[1] <http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_hash.c#2241>

-- 
Christoph M. Becker

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to