tony2001 Thu Apr 26 23:42:36 2007 UTC
Modified files:
/php-src/ext/filter/tests 010.phpt 011.phpt bug7715.phpt
/php-src/ext/json/tests bug40503.phpt pass001.1.phpt pass001.phpt
/php-src/ext/reflection/tests bug29986.phpt
/php-src/ext/standard/tests/array bug41121.phpt array_sum.phpt
/php-src/ext/standard/tests/file disk.phpt
/php-src/ext/standard/tests/math constants.phpt hexdec.phpt
/php-src/ext/standard/tests/serialize bug31442.phpt
/php-src/ext/standard/tests/strings printf.phpt
Log:
fix tests
add test for yet not merged fix
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/tests/010.phpt?r1=1.11&r2=1.12&diff_format=u
Index: php-src/ext/filter/tests/010.phpt
diff -u php-src/ext/filter/tests/010.phpt:1.11
php-src/ext/filter/tests/010.phpt:1.12
--- php-src/ext/filter/tests/010.phpt:1.11 Tue Dec 19 14:16:07 2006
+++ php-src/ext/filter/tests/010.phpt Thu Apr 26 23:42:35 2007
@@ -1,5 +1,7 @@
--TEST--
filter_var()
+--INI--
+precision=14
--SKIPIF--
<?php if (!extension_loaded("filter")) die("skip"); ?>
--FILE--
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/tests/011.phpt?r1=1.7&r2=1.8&diff_format=u
Index: php-src/ext/filter/tests/011.phpt
diff -u php-src/ext/filter/tests/011.phpt:1.7
php-src/ext/filter/tests/011.phpt:1.8
--- php-src/ext/filter/tests/011.phpt:1.7 Wed Apr 18 07:57:31 2007
+++ php-src/ext/filter/tests/011.phpt Thu Apr 26 23:42:35 2007
@@ -1,5 +1,7 @@
--TEST--
input_get()
+--INI--
+precision=14
--SKIPIF--
<?php if (!extension_loaded("filter")) die("skip"); ?>
--GET--
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/tests/bug7715.phpt?r1=1.5&r2=1.6&diff_format=u
Index: php-src/ext/filter/tests/bug7715.phpt
diff -u php-src/ext/filter/tests/bug7715.phpt:1.5
php-src/ext/filter/tests/bug7715.phpt:1.6
--- php-src/ext/filter/tests/bug7715.phpt:1.5 Fri Apr 20 08:00:43 2007
+++ php-src/ext/filter/tests/bug7715.phpt Thu Apr 26 23:42:35 2007
@@ -1,5 +1,7 @@
--TEST--
bug 7715, floats value with integer or incomplete input
+--INI--
+precision=14
--SKIPIF--
<?php if (!extension_loaded("filter")) die("skip"); ?>
--FILE--
http://cvs.php.net/viewvc.cgi/php-src/ext/json/tests/bug40503.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/json/tests/bug40503.phpt
diff -u php-src/ext/json/tests/bug40503.phpt:1.2
php-src/ext/json/tests/bug40503.phpt:1.3
--- php-src/ext/json/tests/bug40503.phpt:1.2 Mon Feb 19 19:44:44 2007
+++ php-src/ext/json/tests/bug40503.phpt Thu Apr 26 23:42:36 2007
@@ -1,5 +1,7 @@
--TEST--
Bug #40503 (json_encode() value corruption on 32bit systems with overflown
values)
+--INI--
+precision=14
--SKIPIF--
<?php if (!extension_loaded("json")) print "skip"; ?>
--FILE--
http://cvs.php.net/viewvc.cgi/php-src/ext/json/tests/pass001.1.phpt?r1=1.6&r2=1.7&diff_format=u
Index: php-src/ext/json/tests/pass001.1.phpt
diff -u php-src/ext/json/tests/pass001.1.phpt:1.6
php-src/ext/json/tests/pass001.1.phpt:1.7
--- php-src/ext/json/tests/pass001.1.phpt:1.6 Fri Apr 20 10:15:12 2007
+++ php-src/ext/json/tests/pass001.1.phpt Thu Apr 26 23:42:36 2007
@@ -1,5 +1,7 @@
--TEST--
JSON (http://www.crockford.com/JSON/JSON_checker/test/pass1.json)
+--INI--
+precision=14
--SKIPIF--
<?php
if (!extension_loaded('json')) die('skip: json extension not available');
http://cvs.php.net/viewvc.cgi/php-src/ext/json/tests/pass001.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/json/tests/pass001.phpt
diff -u php-src/ext/json/tests/pass001.phpt:1.3
php-src/ext/json/tests/pass001.phpt:1.4
--- php-src/ext/json/tests/pass001.phpt:1.3 Thu Oct 19 20:17:17 2006
+++ php-src/ext/json/tests/pass001.phpt Thu Apr 26 23:42:36 2007
@@ -1,5 +1,7 @@
--TEST--
JSON (http://www.crockford.com/JSON/JSON_checker/test/pass1.json)
+--INI--
+precision=14
--SKIPIF--
<?php
if (!extension_loaded('json')) die('skip: json extension not available');
http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/tests/bug29986.phpt?r1=1.5&r2=1.6&diff_format=u
Index: php-src/ext/reflection/tests/bug29986.phpt
diff -u php-src/ext/reflection/tests/bug29986.phpt:1.5
php-src/ext/reflection/tests/bug29986.phpt:1.6
--- php-src/ext/reflection/tests/bug29986.phpt:1.5 Tue Sep 12 10:44:18 2006
+++ php-src/ext/reflection/tests/bug29986.phpt Thu Apr 26 23:42:36 2007
@@ -1,5 +1,7 @@
--TEST--
Reflection Bug #29986 (Class constants won't work with predefined constants
when using ReflectionClass)
+--INI--
+precision=14
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--FILE--
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/bug41121.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/standard/tests/array/bug41121.phpt
diff -u /dev/null php-src/ext/standard/tests/array/bug41121.phpt:1.2
--- /dev/null Thu Apr 26 23:42:36 2007
+++ php-src/ext/standard/tests/array/bug41121.phpt Thu Apr 26 23:42:36 2007
@@ -0,0 +1,128 @@
+--TEST--
+Bug #41121 (range() overflow handling for large numbers on 32bit machines)
+--INI--
+precision=14
+--SKIPIF--
+<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
+--FILE--
+<?php
+
+// posotive steps
+var_dump(range(2147483400, 2147483600, 100));
+var_dump( range(2147483646, 2147483648, 1 ) );
+var_dump( range(2147483646, 2147483657, 1 ) );
+var_dump( range(2147483630, 2147483646, 5 ) );
+
+// negative steps
+var_dump( range(-2147483645, -2147483648, 1 ) );
+var_dump( range(-2147483645, -2147483649, 1 ) );
+var_dump( range(-2147483630, -2147483646, 5 ) );
+
+// low > high
+var_dump(range(2147483647, 2147483645, 1 ));
+var_dump(range(2147483648, 2147483645, 1 ));
+
+?>
+--EXPECT--
+array(3) {
+ [0]=>
+ int(2147483400)
+ [1]=>
+ int(2147483500)
+ [2]=>
+ int(2147483600)
+}
+array(3) {
+ [0]=>
+ float(2147483646)
+ [1]=>
+ float(2147483647)
+ [2]=>
+ float(2147483648)
+}
+array(12) {
+ [0]=>
+ float(2147483646)
+ [1]=>
+ float(2147483647)
+ [2]=>
+ float(2147483648)
+ [3]=>
+ float(2147483649)
+ [4]=>
+ float(2147483650)
+ [5]=>
+ float(2147483651)
+ [6]=>
+ float(2147483652)
+ [7]=>
+ float(2147483653)
+ [8]=>
+ float(2147483654)
+ [9]=>
+ float(2147483655)
+ [10]=>
+ float(2147483656)
+ [11]=>
+ float(2147483657)
+}
+array(4) {
+ [0]=>
+ int(2147483630)
+ [1]=>
+ int(2147483635)
+ [2]=>
+ int(2147483640)
+ [3]=>
+ int(2147483645)
+}
+array(4) {
+ [0]=>
+ float(-2147483645)
+ [1]=>
+ float(-2147483646)
+ [2]=>
+ float(-2147483647)
+ [3]=>
+ float(-2147483648)
+}
+array(5) {
+ [0]=>
+ float(-2147483645)
+ [1]=>
+ float(-2147483646)
+ [2]=>
+ float(-2147483647)
+ [3]=>
+ float(-2147483648)
+ [4]=>
+ float(-2147483649)
+}
+array(4) {
+ [0]=>
+ int(-2147483630)
+ [1]=>
+ int(-2147483635)
+ [2]=>
+ int(-2147483640)
+ [3]=>
+ int(-2147483645)
+}
+array(3) {
+ [0]=>
+ int(2147483647)
+ [1]=>
+ int(2147483646)
+ [2]=>
+ int(2147483645)
+}
+array(4) {
+ [0]=>
+ float(2147483648)
+ [1]=>
+ float(2147483647)
+ [2]=>
+ float(2147483646)
+ [3]=>
+ float(2147483645)
+}
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_sum.phpt?r1=1.6&r2=1.7&diff_format=u
Index: php-src/ext/standard/tests/array/array_sum.phpt
diff -u php-src/ext/standard/tests/array/array_sum.phpt:1.6
php-src/ext/standard/tests/array/array_sum.phpt:1.7
--- php-src/ext/standard/tests/array/array_sum.phpt:1.6 Mon Dec 25 21:08:10 2006
+++ php-src/ext/standard/tests/array/array_sum.phpt Thu Apr 26 23:42:36 2007
@@ -1,6 +1,7 @@
--TEST--
Test array_sum()
--INI--
+precision=14
memory_limit=128M
--FILE--
<?php
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/disk.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/standard/tests/file/disk.phpt
diff -u php-src/ext/standard/tests/file/disk.phpt:1.1
php-src/ext/standard/tests/file/disk.phpt:1.2
--- php-src/ext/standard/tests/file/disk.phpt:1.1 Wed Nov 15 17:26:54 2006
+++ php-src/ext/standard/tests/file/disk.phpt Thu Apr 26 23:42:36 2007
@@ -1,5 +1,7 @@
--TEST--
disk_total_space() and disk_free_space() tests
+--INI--
+precision=14
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) == 'WIN') {
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/math/constants.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/standard/tests/math/constants.phpt
diff -u php-src/ext/standard/tests/math/constants.phpt:1.2
php-src/ext/standard/tests/math/constants.phpt:1.3
--- php-src/ext/standard/tests/math/constants.phpt:1.2 Sun Oct 15 13:44:41 2006
+++ php-src/ext/standard/tests/math/constants.phpt Thu Apr 26 23:42:36 2007
@@ -1,5 +1,7 @@
--TEST--
Math constants
+--INI--
+precision=14
--FILE--
<?php
$constants = array(
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/math/hexdec.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/standard/tests/math/hexdec.phpt
diff -u php-src/ext/standard/tests/math/hexdec.phpt:1.3
php-src/ext/standard/tests/math/hexdec.phpt:1.4
--- php-src/ext/standard/tests/math/hexdec.phpt:1.3 Sun Nov 17 09:27:48 2002
+++ php-src/ext/standard/tests/math/hexdec.phpt Thu Apr 26 23:42:36 2007
@@ -1,5 +1,7 @@
--TEST--
overflow check for _php_math_basetozval
+--INI--
+precision=14
--FILE--
<?php
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/serialize/bug31442.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/standard/tests/serialize/bug31442.phpt
diff -u php-src/ext/standard/tests/serialize/bug31442.phpt:1.1
php-src/ext/standard/tests/serialize/bug31442.phpt:1.2
--- php-src/ext/standard/tests/serialize/bug31442.phpt:1.1 Sat Jan 8
13:47:05 2005
+++ php-src/ext/standard/tests/serialize/bug31442.phpt Thu Apr 26 23:42:36 2007
@@ -1,5 +1,7 @@
--TEST--
Bug #31442 (unserialize broken on 64-bit systems)
+--INI--
+precision=14
--FILE--
<?php
echo unserialize(serialize(2147483648));
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/printf.phpt?r1=1.4&r2=1.5&diff_format=u
Index: php-src/ext/standard/tests/strings/printf.phpt
diff -u php-src/ext/standard/tests/strings/printf.phpt:1.4
php-src/ext/standard/tests/strings/printf.phpt:1.5
--- php-src/ext/standard/tests/strings/printf.phpt:1.4 Sun Apr 22 19:47:08 2007
+++ php-src/ext/standard/tests/strings/printf.phpt Thu Apr 26 23:42:36 2007
@@ -1,5 +1,7 @@
--TEST--
Test printf() function (32bit)
+--INI--
+precision=14
--SKIPIF--
<?php
if (PHP_INT_MAX > 2147483647) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php