From: Antony Dovgal Date: Thu, 28 Sep 2006 11:44:05 +0000 (+0000) Subject: add new tests X-Git-Tag: php-5.2.0RC5~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c119d63a9fd32d350e64ba9d5e865b4708dc487c;p=php add new tests --- diff --git a/Zend/tests/int_overflow_32bit.phpt b/Zend/tests/int_overflow_32bit.phpt new file mode 100644 index 0000000000..d9b56495e9 --- /dev/null +++ b/Zend/tests/int_overflow_32bit.phpt @@ -0,0 +1,29 @@ +--TEST-- +testing integer overflow (32bit) +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +int(-2147483648) +int(-2147483647) +int(-2147483638) +int(-2147483548) +int(-2147482648) +Done diff --git a/Zend/tests/int_underflow_32bit.phpt b/Zend/tests/int_underflow_32bit.phpt new file mode 100644 index 0000000000..901e7cfb55 --- /dev/null +++ b/Zend/tests/int_underflow_32bit.phpt @@ -0,0 +1,29 @@ +--TEST-- +testing integer underflow (32bit) +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +int(-2147483648) +int(-2147483648) +int(-2147483648) +int(-2147483648) +int(-2147483648) +Done