From ba9ef20412dd9e53b42666dc67adf7e51c3acb6d Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Mon, 25 Apr 2005 11:18:44 +0000 Subject: [PATCH] add test --- ext/gmp/tests/bug32773.phpt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ext/gmp/tests/bug32773.phpt diff --git a/ext/gmp/tests/bug32773.phpt b/ext/gmp/tests/bug32773.phpt new file mode 100644 index 0000000000..0890362c7d --- /dev/null +++ b/ext/gmp/tests/bug32773.phpt @@ -0,0 +1,24 @@ +--TEST-- +Bug #32773 binary GMP functions returns unexpected value, when second parameter is int(0) +--SKIPIF-- + +--POST-- +--GET-- +--FILE-- + +--EXPECTF-- +10 + 0 = 10 +10 + "0" = 10 + +Warning: gmp_div(): Zero operand not allowed in %s on line %d +0 + +Warning: gmp_div_qr(): Zero operand not allowed in %s on line %d +0 -- 2.40.0