From: Ilia Alshanetsky Date: Mon, 4 Feb 2008 21:31:52 +0000 (+0000) Subject: Revert fix for bug #43981, not yet ready for 5.2 X-Git-Tag: php-5.2.6RC1~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c92d82a0278c82d234a84b977a5e635253f0ef1;p=php Revert fix for bug #43981, not yet ready for 5.2 --- diff --git a/NEWS b/NEWS index 511f307b17..5970df8cd5 100644 --- a/NEWS +++ b/NEWS @@ -11,8 +11,6 @@ PHP NEWS - Fixed bug #44028 (crash inside stream_socket_enable_crypto() when enabling encryption without crypto type). (Ilia) -- Fixed bug #43981 (gmp_div_r() does not preserve the sign of 1st argument). - (Ilia) - Fixed bug #43954 (Memory leak when sending the same HTTP status code multiple times). (Scott) - Fixed bug #43927 (koi8r is missing from html_entity_decode()). diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c index 6bfa9fe54c..09f468d1b5 100644 --- a/ext/gmp/gmp.c +++ b/ext/gmp/gmp.c @@ -552,9 +552,6 @@ static inline void gmp_zval_binary_ui_op_ex(zval *return_value, zval **a_arg, zv if (use_ui && gmp_ui_op) { if (allow_ui_return) { long_result = gmp_ui_op(*gmpnum_result, *gmpnum_a, (unsigned long)Z_LVAL_PP(b_arg)); - if (mpz_sgn(*gmpnum_a) == -1) { - long_result = -long_result; - } } else { gmp_ui_op(*gmpnum_result, *gmpnum_a, (unsigned long)Z_LVAL_PP(b_arg)); }