Make more tests run on 64bit plataforms

This commit is contained in:
Gabriel Caruso 2018-07-27 00:19:13 -03:00
parent 4a1336de7c
commit 9c8b3ae43f
No known key found for this signature in database
GPG Key ID: EA85C7988F5A6877
17 changed files with 5 additions and 59 deletions

View File

@ -1,9 +1,5 @@
--TEST--
Bug #74603 (PHP INI Parsing Stack Buffer Overflow Vulnerability)
--SKIPIF--
<?php
if (PHP_INT_MAX !== 2147483647)
die('skip for 32-bit only');
--FILE--
<?php
var_dump(parse_ini_file(__DIR__ . "/bug74603.ini", true, INI_SCANNER_NORMAL));

View File

@ -2,8 +2,6 @@
testing integer overflow (32bit)
--INI--
precision=14
--SKIPIF--
<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?>
--FILE--
<?php

View File

@ -1,9 +1,7 @@
--TEST--
Test exif_tagname() function : usage variations - different types for index argument
--SKIPIF--
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';
if (PHP_INT_SIZE != 4) die('skip 32-bit only');
?>
<?php if (!extension_loaded('exif')) print 'skip exif extension not available'; ?>
--FILE--
<?php

View File

@ -4,8 +4,7 @@ JSON (http://www.crockford.com/JSON/JSON_checker/test/pass1.json)
serialize_precision=-1
--SKIPIF--
<?php
if (!extension_loaded('json')) die('skip');
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
if (!extension_loaded('json')) die('skip json extension not loaded');
?>
--FILE--
<?php

View File

@ -8,9 +8,6 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
if (substr(PHP_OS, 0, 3) == 'SUN') {
die('skip Not valid for Sun Solaris');
}
if (PHP_INT_SIZE != 4) {
die("skip this test is for 32bit platform only");
}
?>
--FILE--
<?php

View File

@ -5,9 +5,6 @@ Test symlink(), linkinfo(), link() and is_link() functions : error conditions -
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip no symlinks on Windows');
}
if (PHP_INT_SIZE != 4) {
die("skip this test is for 32bit platform only");
}
?>
--FILE--
<?php

View File

@ -8,9 +8,6 @@ if ( substr(PHP_OS, 0, 3) == 'WIN' ) {
if ( substr(PHP_OS, 0, 3) == 'MAC' ) {
die('skip Not valid for MacOS');
}
if (PHP_INT_SIZE != 4) {
die("skip this test is for 32bit platform only");
}
// Skip if being run by root (files are always readable, writeable and executable)
$filename = dirname(__FILE__)."/symlink_link_linkinfo_is_link6_check_root.tmp";

View File

@ -1,9 +1,5 @@
--TEST--
Test print_r() function
--SKIPIF--
<?php
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
--INI--
precision=14
--FILE--

View File

@ -1,9 +1,5 @@
--TEST--
Test ezmlm_hash() function : basic functionality
--SKIPIF--
<?php
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
Test ezmlm_hash() function : basic functionality
--FILE--
<?php
/* Prototype : int ezmlm_hash ( string $addr )

View File

@ -1,11 +1,5 @@
--TEST--
Test crc32() function : basic functionality
--SKIPIF--
<?php
if (PHP_INT_SIZE != 4)
die("skip this test is for 32bit platform only");
?>
Test crc32() function : basic functionality
--FILE--
<?php
/* Prototype : string crc32(string $str)

View File

@ -1,11 +1,5 @@
--TEST--
Test crc32() function : error conditions
--SKIPIF--
<?php
if (PHP_INT_SIZE != 4)
die("skip this test is for 32bit platform only");
?>
Test crc32() function : error conditions
--FILE--
<?php
/* Prototype : string crc32(string $str)

View File

@ -1,7 +1,5 @@
--TEST--
strripos() offset integer overflow
--SKIPIF--
<?php if (PHP_INT_SIZE !== 4) die("skip this test is for 32-bit only");
--FILE--
<?php

View File

@ -1,7 +1,5 @@
--TEST--
strrpos() offset integer overflow
--SKIPIF--
<?php if (PHP_INT_SIZE !== 4) die("skip this test is for 32-bit only");
--FILE--
<?php

View File

@ -1,9 +1,5 @@
--TEST--
Test << operator : various numbers as strings
--SKIPIF--
<?php
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
--FILE--
<?php

View File

@ -1,9 +1,5 @@
--TEST--
Test > operator : max int 32bit range
--SKIPIF--
<?php
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
--FILE--
<?php

View File

@ -1,9 +1,5 @@
--TEST--
Test < operator : max int 32bit range
--SKIPIF--
<?php
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
--FILE--
<?php