mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Make more tests run on 64bit plataforms
This commit is contained in:
parent
4a1336de7c
commit
9c8b3ae43f
@ -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));
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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";
|
||||
|
Binary file not shown.
@ -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--
|
||||
|
@ -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 )
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user