com php-src: fix datatype mismatch: ext/spl/spl_observer.c
| From: | Anatol Belski | Date: | Wed, 29 Oct 2014 14:30:13 +0000 |
| Subject: | com php-src: fix datatype mismatch: ext/spl/spl_observer.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82853@lists.php.net to get a copy of this message | ||
Commit: 1100f1b8fdffe5ba16d6785b2ba2fc91c33f4833
Author: Anatol Belski <ab@php.net> Wed, 29 Oct 2014 14:09:30 +0100
Parents: 110cf649b7d156f97f98cc8e894fb2d4ed8c67ff
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1100f1b8fdffe5ba16d6785b2ba2fc91c33f4833
Log:
fix datatype mismatch
Changed paths:
M ext/spl/spl_observer.c
Diff:
diff --git a/ext/spl/spl_observer.c b/ext/spl/spl_observer.c
index d3ce72a..f7f884d 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);
}
/* }}} */