]> granicus.if.org Git - php/commitdiff
fix datatype mismatch
authorAnatol Belski <ab@php.net>
Wed, 29 Oct 2014 13:09:30 +0000 (14:09 +0100)
committerAnatol Belski <ab@php.net>
Wed, 29 Oct 2014 14:30:13 +0000 (15:30 +0100)
ext/spl/spl_observer.c

index d3ce72aaa3bbc162af2883e0f686aba004a82106..f7f884df188c5e27bc470f551a493acaafbe792f 100644 (file)
@@ -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);
 }
 /* }}} */