mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
fix tests
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
double to string conversion tests
|
||||
--INI--
|
||||
precision=14
|
||||
--SKIPIF--
|
||||
<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?>
|
||||
--FILE--
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
testing integer overflow (32bit)
|
||||
--INI--
|
||||
precision=14
|
||||
--SKIPIF--
|
||||
<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?>
|
||||
--FILE--
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
testing integer overflow (32bit)
|
||||
--INI--
|
||||
precision=14
|
||||
--SKIPIF--
|
||||
<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?>
|
||||
--FILE--
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
filter_var()
|
||||
--INI--
|
||||
precision=14
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("filter")) die("skip"); ?>
|
||||
--FILE--
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
input_get()
|
||||
--INI--
|
||||
precision=14
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("filter")) die("skip"); ?>
|
||||
--GET--
|
||||
|
||||
@@ -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--
|
||||
|
||||
@@ -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--
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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--
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
--TEST--
|
||||
Test array_sum()
|
||||
--INI--
|
||||
precision=14
|
||||
memory_limit=128M
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--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--
|
||||
|
||||
@@ -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') {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
Math constants
|
||||
--INI--
|
||||
precision=14
|
||||
--FILE--
|
||||
<?php
|
||||
$constants = array(
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
overflow check for _php_math_basetozval
|
||||
--INI--
|
||||
precision=14
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
Bug #31442 (unserialize broken on 64-bit systems)
|
||||
--INI--
|
||||
precision=14
|
||||
--FILE--
|
||||
<?php
|
||||
echo unserialize(serialize(2147483648));
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
Test printf() function (32bit)
|
||||
--INI--
|
||||
precision=14
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (PHP_INT_MAX > 2147483647) {
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user