diff options
| author | Wez Furlong <wez@php.net> | 2007-03-18 20:20:23 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2007-03-18 20:20:23 +0000 |
| commit | 16fc958508947bd816455ff6050cf83e98477028 (patch) | |
| tree | f2545b00fffeaaffc04a0114f1061207215c3dff /ext/standard/array.c | |
| parent | 89939e13d693aac8045beb0913aef33204de500c (diff) | |
| download | php-git-16fc958508947bd816455ff6050cf83e98477028.tar.gz | |
fixes #40848
Diffstat (limited to 'ext/standard/array.c')
| -rw-r--r-- | ext/standard/array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c index 9d24b15d77..3ff80a12a3 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -596,7 +596,7 @@ static int array_user_compare(const void *a, const void *b TSRMLS_DC) convert_to_long_ex(&retval_ptr); retval = Z_LVAL_P(retval_ptr); zval_ptr_dtor(&retval_ptr); - return retval; + return retval < 0 ? -1 : retval > 0 ? 1 : 0;; } else { return 0; } |
