This commit is contained in:
Wez Furlong 2007-03-18 20:20:23 +00:00
parent 89939e13d6
commit 16fc958508

View File

@ -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;
}