Skip to content

Commit edf3fe4

Browse files
committed
MFB, #40848
1 parent 82fb9f2 commit edf3fe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ static int array_user_compare(const void *a, const void *b TSRMLS_DC)
597597
convert_to_long_ex(&retval_ptr);
598598
retval = Z_LVAL_P(retval_ptr);
599599
zval_ptr_dtor(&retval_ptr);
600-
return retval;
600+
return retval < 0 ? -1 : retval > 0 ? 1 : 0;
601601
} else {
602602
return 0;
603603
}

0 commit comments

Comments
 (0)