Skip to content

Commit 1392102

Browse files
Updated or skipped certain 32-bit tests
1 parent ea7f768 commit 1392102

18 files changed

+33
-11
lines changed

ext/bcmath/tests/bug60377.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
--TEST--
22
bcscale related problem on 64bits platforms
33
--SKIPIF--
4-
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
4+
<?php if(!extension_loaded("bcmath")) die("skip");
5+
if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?>
56
--FILE--
67
<?php
78
$var48 = bcscale(634314234334311);

ext/curl/tests/curl_version_variation1.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
--TEST--
22
Test curl_version() function : usage variations - test values for $ascii argument
33
--SKIPIF--
4-
<?php if (!extension_loaded("curl")) exit("skip curl extension not loaded"); ?>
4+
<?php if (!extension_loaded("curl")) exit("skip curl extension not loaded");
5+
if (PHP_INT_SIZE != 8) die('skip 64-bit only'); ?>
56
--FILE--
67
<?php
78

ext/exif/tests/exif_tagname_variation1.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
--TEST--
22
Test exif_tagname() function : usage variations - different types for index argument
33
--SKIPIF--
4-
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
4+
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';
5+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
6+
?>
57
--FILE--
68
<?php
79

ext/gd/tests/imagecolorallocate_variation2.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if(!extension_loaded('gd')) {
88
if(!function_exists('imagecreatetruecolor')) {
99
die('skip imagecreatetruecolor function is not available');
1010
}
11+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
1112
?>
1213
--FILE--
1314
<?php

ext/gd/tests/imagecolorallocate_variation4.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if(!extension_loaded('gd')) {
88
if(!function_exists('imagecreatetruecolor')) {
99
die('skip imagecreatetruecolor function is not available');
1010
}
11+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
1112
?>
1213
--FILE--
1314
<?php
@@ -210,4 +211,4 @@ int(657920)
210211

211212
Warning: imagecolorallocate() expects parameter 4 to be long, resource given in %s on line %d
212213
NULL
213-
===DONE===
214+
===DONE===

ext/intl/tests/bug53512.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
--TEST--
22
Bug #53512 (NumberFormatter::setSymbol crash on bogus $attr values)
33
--SKIPIF--
4-
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
4+
<?php if( !extension_loaded( 'intl' ) ) die('skip');
5+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
6+
?>
57
--FILE--
68
<?php
79

ext/intl/tests/bug61487.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
--TEST--
22
grapheme() str[i]pos limits
33
--SKIPIF--
4-
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
4+
<?php if( !extension_loaded( 'intl' ) ) die('skip');
5+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
6+
?>
57
--FILE--
68
<?php
79
var_dump(grapheme_stripos(1,1,2147483648));

ext/intl/tests/collator_get_locale2.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ get_locale() icu >= 4.8
33
--SKIPIF--
44
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
55
<?php if(version_compare(INTL_ICU_VERSION, '4.8') < 0) print 'skip'; ?>
6+
<?php if (PHP_INT_SIZE != 8) die('skip 64-bit only'); ?>
67
--FILE--
78
<?php
89

ext/intl/tests/dateformat_get_locale.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
--TEST--
22
datefmt_get_locale_code()
33
--SKIPIF--
4-
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
4+
<?php if( !extension_loaded( 'intl' ) ) die('skip');
5+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
6+
?>
57
--FILE--
68
<?php
79

ext/intl/tests/formatter_get_set_symbol2.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ numfmt_get/set_symbol() icu >= 4.8
33
--SKIPIF--
44
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
55
<?php if(version_compare(INTL_ICU_VERSION, '4.8') < 0) print 'skip'; ?>
6+
<?php if (PHP_INT_SIZE != 8) die('skip 64-bit only'); ?>
67
--FILE--
78
<?php
89

ext/mbstring/tests/mb_encode_mimeheader_variation5.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Test mb_encode_mimeheader() function : usage variations - Pass different data ty
44
<?php
55
extension_loaded('mbstring') or die('skip');
66
function_exists('mb_encode_mimeheader') or die("skip mb_encode_mimeheader() is not available in this build");
7+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
78
?>
89
--FILE--
910
<?php

ext/mbstring/tests/mb_split_variation3.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Test mb_split() function : usage variations - different parameter types for lim
44
<?php
55
extension_loaded('mbstring') or die('skip');
66
function_exists('mb_split') or die("skip mb_split() is not available in this build");
7+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
78
?>
89
--FILE--
910
<?php
@@ -328,4 +329,4 @@ array(1) {
328329

329330
Warning: mb_split() expects parameter 3 to be long, resource given in %s on line %d
330331
bool(false)
331-
Done
332+
Done

ext/mbstring/tests/mb_stripos_variation3.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Test mb_stripos() function : usage variations - pass different data types as $of
44
<?php
55
extension_loaded('mbstring') or die('skip');
66
function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
7+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
78
?>
89
--FILE--
910
<?php

ext/mbstring/tests/mb_strpos_variation3.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Test mb_strpos() function : usage variations - pass different data types as $off
44
<?php
55
extension_loaded('mbstring') or die('skip');
66
function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
7+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
78
?>
89
--FILE--
910
<?php

ext/mbstring/tests/mb_strripos_variation3_Bug45923.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Test mb_strripos() function : usage variations - pass different data types as $o
44
<?php
55
extension_loaded('mbstring') or die('skip');
66
function_exists('mb_strripos') or die("skip mb_strripos() is not available in this build");
7+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
78
?>
89
--FILE--
910
<?php

ext/zlib/tests/gzfile_variation11.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Test function gzfile() by substituting argument 2 with float values.
33
--SKIPIF--
44
<?php
55
if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
6+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
67
?>
78
--FILE--
89
<?php
@@ -126,4 +127,4 @@ array(6) {
126127
string(39) "and I know that it descends down on me
127128
"
128129
}
129-
===DONE===
130+
===DONE===

ext/zlib/tests/gzopen_variation3.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Test gzopen() function : usage variation
44
<?php
55
if (!extension_loaded("zlib")) {
66
print "skip - zlib extension not loaded";
7-
}
7+
}
8+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
89
?>
910
--FILE--
1011
<?php

ext/zlib/tests/readgzfile_variation11.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Test function readgzfile() by substituting argument 2 with float values.
33
--SKIPIF--
44
<?php
55
if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
6+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
67
?>
78
--FILE--
89
<?php
@@ -61,4 +62,4 @@ Destiny who cares
6162
as it turns around
6263
and I know that it descends down on me
6364
int(176)
64-
===DONE===
65+
===DONE===

0 commit comments

Comments
 (0)