From: Anatol Belski Date: Wed, 29 Oct 2014 13:09:30 +0000 (+0100) Subject: fix datatype mismatch X-Git-Tag: PRE_PHP7_REMOVALS~87^2~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1100f1b8fdffe5ba16d6785b2ba2fc91c33f4833;p=php fix datatype mismatch --- diff --git a/ext/spl/spl_observer.c b/ext/spl/spl_observer.c index d3ce72aaa3..f7f884df18 100644 --- a/ext/spl/spl_observer.c +++ b/ext/spl/spl_observer.c @@ -398,7 +398,7 @@ static int spl_object_storage_compare_info(zval *e1, zval *e2 TSRMLS_DC) /* {{{ return 1; } - return Z_LVAL(result); + return Z_LVAL(result) > 0 ? 1 : (Z_LVAL(result) < 0 ? -1 : 0); } /* }}} */