mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
fixes #40848
This commit is contained in:
parent
89939e13d6
commit
16fc958508
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user