]> granicus.if.org Git - php/commitdiff
Updated or skipped certain 32-bit tests
authorAndrea Faulds <ajf@ajf.me>
Wed, 17 Dec 2014 01:06:48 +0000 (01:06 +0000)
committerAndrea Faulds <ajf@ajf.me>
Wed, 17 Dec 2014 01:06:48 +0000 (01:06 +0000)
18 files changed:
ext/bcmath/tests/bug60377.phpt
ext/curl/tests/curl_version_variation1.phpt
ext/exif/tests/exif_tagname_variation1.phpt
ext/gd/tests/imagecolorallocate_variation2.phpt
ext/gd/tests/imagecolorallocate_variation4.phpt
ext/intl/tests/bug53512.phpt
ext/intl/tests/bug61487.phpt
ext/intl/tests/collator_get_locale2.phpt
ext/intl/tests/dateformat_get_locale.phpt
ext/intl/tests/formatter_get_set_symbol2.phpt
ext/mbstring/tests/mb_encode_mimeheader_variation5.phpt
ext/mbstring/tests/mb_split_variation3.phpt
ext/mbstring/tests/mb_stripos_variation3.phpt
ext/mbstring/tests/mb_strpos_variation3.phpt
ext/mbstring/tests/mb_strripos_variation3_Bug45923.phpt
ext/zlib/tests/gzfile_variation11.phpt
ext/zlib/tests/gzopen_variation3.phpt
ext/zlib/tests/readgzfile_variation11.phpt

index 7c420029177efe22fb82e20810a57d5e2b5f57a0..af7f7d44fdc8ccedd5e7364475be11b50a14344f 100644 (file)
@@ -1,7 +1,8 @@
 --TEST--
 bcscale related problem on 64bits platforms
 --SKIPIF--
-<?php if(!extension_loaded("bcmath")) print "skip"; ?>
+<?php if(!extension_loaded("bcmath")) die("skip");
+if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?>
 --FILE--
 <?php
 $var48 = bcscale(634314234334311);
index 927b4ac3175f84e9dee794083feaed7464b151f7..8b9554e5aa6c7786b61e4e417ec31010381f7b6d 100644 (file)
@@ -1,7 +1,8 @@
 --TEST--\r
 Test curl_version() function : usage variations - test values for $ascii argument\r
 --SKIPIF--\r
-<?php if (!extension_loaded("curl")) exit("skip curl extension not loaded"); ?>\r
+<?php if (!extension_loaded("curl")) exit("skip curl extension not loaded");\r
+if (PHP_INT_SIZE != 8) die('skip 64-bit only'); ?>\r
 --FILE--\r
 <?php\r
 \r
index 0f9c1354205b62f6bf6421669c9134551ee3ed2b..efa227ec7ebbc62fa8c0f993eecd7441f9185ccd 100644 (file)
@@ -1,7 +1,9 @@
 --TEST--
 Test exif_tagname() function : usage variations  - different types for index argument
 --SKIPIF--
-<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
+<?php if (!extension_loaded('exif')) print 'skip exif extension not available';
+if (PHP_INT_SIZE != 8) die('skip 64-bit only');
+?>
 --FILE--
 <?php
 
index bd9dc984d163ed6822fae463c9689a7654226bfe..84ff9e26ffb387e776b2c0cad3d1702abd4e4b3c 100644 (file)
@@ -8,6 +8,7 @@ if(!extension_loaded('gd')) {
 if(!function_exists('imagecreatetruecolor')) {
     die('skip imagecreatetruecolor function is not available');
 }
+if (PHP_INT_SIZE != 8) die('skip 64-bit only');
 ?> 
 --FILE--
 <?php
index 328a4cd3b264e39a81dba1e4f02982ffc9436090..8b82d01a87f5fd509b2a8277a2ec003822d688cf 100644 (file)
@@ -8,6 +8,7 @@ if(!extension_loaded('gd')) {
 if(!function_exists('imagecreatetruecolor')) {
     die('skip imagecreatetruecolor function is not available');
 }
+if (PHP_INT_SIZE != 8) die('skip 64-bit only');
 ?>
 --FILE--
 <?php
@@ -210,4 +211,4 @@ int(657920)
 
 Warning: imagecolorallocate() expects parameter 4 to be long, resource given in %s on line %d
 NULL
-===DONE===
\ No newline at end of file
+===DONE===
index a1b1dcf37a5110d2d44db874e8c5f3dada41794b..0de2c49a200c5ecc6b999b107971905ff7c87f7a 100644 (file)
@@ -1,7 +1,9 @@
 --TEST--
 Bug #53512 (NumberFormatter::setSymbol crash on bogus $attr values)
 --SKIPIF--
-<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
+<?php if( !extension_loaded( 'intl' ) ) die('skip');
+if (PHP_INT_SIZE != 8) die('skip 64-bit only');
+?>
 --FILE--
 <?php
 
index 361debe4084b0cddc95677a897239e156b0fdc27..2270b25cce8cc2e6c95df1d61b6d0243ded9b390 100644 (file)
@@ -1,7 +1,9 @@
 --TEST--
 grapheme() str[i]pos limits
 --SKIPIF--
-<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
+<?php if( !extension_loaded( 'intl' ) ) die('skip'); 
+if (PHP_INT_SIZE != 8) die('skip 64-bit only');
+?>
 --FILE--
 <?php
 var_dump(grapheme_stripos(1,1,2147483648));
index 798c7927f6be1383f210e71c158f813c532513ba..e9a9f2653db92e46901fee68645f05d0b15816d8 100644 (file)
@@ -3,6 +3,7 @@ get_locale() icu >= 4.8
 --SKIPIF--
 <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
 <?php if(version_compare(INTL_ICU_VERSION, '4.8') < 0) print 'skip'; ?>
+<?php if (PHP_INT_SIZE != 8) die('skip 64-bit only'); ?>
 --FILE--
 <?php
 
index 17fcca355132d91e3afd269dc01bd0af05d4a266..48b7daa8d46a17b58887fb16ada7ddf5f5df8b66 100644 (file)
@@ -1,7 +1,9 @@
 --TEST--
 datefmt_get_locale_code()
 --SKIPIF--
-<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
+<?php if( !extension_loaded( 'intl' ) ) die('skip');
+if (PHP_INT_SIZE != 8) die('skip 64-bit only');
+?>
 --FILE--
 <?php
 
index 769713b97d375bc442e14b39acc701257918aa7c..3f982cd0631c044a1110d2a598c233a003374489 100644 (file)
@@ -3,6 +3,7 @@ numfmt_get/set_symbol() icu >= 4.8
 --SKIPIF--
 <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
 <?php if(version_compare(INTL_ICU_VERSION, '4.8') < 0) print 'skip'; ?>
+<?php if (PHP_INT_SIZE != 8) die('skip 64-bit only'); ?>
 --FILE--
 <?php
 
index d57bc1061ac8d23f2cdc588271c2204e75078294..4833cd5df6dfbe0b40db188a9ca88204f2939b87 100644 (file)
@@ -4,6 +4,7 @@ Test mb_encode_mimeheader() function : usage variations - Pass different data ty
 <?php
 extension_loaded('mbstring') or die('skip');
 function_exists('mb_encode_mimeheader') or die("skip mb_encode_mimeheader() is not available in this build");
+if (PHP_INT_SIZE != 8) die('skip 64-bit only');
 ?>
 --FILE--
 <?php
index 5422b169cd8e8f0bcfdd5381da8ffabab747c2cb..ec20c536402bc179713e96f7f56c5d6e6dfd7cc2 100644 (file)
@@ -4,6 +4,7 @@ Test mb_split() function : usage variations  - different parameter types for lim
 <?php
 extension_loaded('mbstring') or die('skip');
 function_exists('mb_split') or die("skip mb_split() is not available in this build");
+if (PHP_INT_SIZE != 8) die('skip 64-bit only');
 ?>
 --FILE--
 <?php
@@ -328,4 +329,4 @@ array(1) {
 
 Warning: mb_split() expects parameter 3 to be long, resource given in %s on line %d
 bool(false)
-Done
\ No newline at end of file
+Done
index decf02e8830943a578a6c79938f106d9e5a8b51b..122a599a581400f0608afa54cbddfdf3ed0a8ab2 100644 (file)
@@ -4,6 +4,7 @@ Test mb_stripos() function : usage variations - pass different data types as $of
 <?php
 extension_loaded('mbstring') or die('skip');
 function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
+if (PHP_INT_SIZE != 8) die('skip 64-bit only');
 ?>
 --FILE--
 <?php
index ff69b8c6f8d92f920a91fb81d3944bcfb22036c7..ac78b62b54a7494c42055e0c7f7ec8fc79f5e00b 100644 (file)
@@ -4,6 +4,7 @@ Test mb_strpos() function : usage variations - pass different data types as $off
 <?php
 extension_loaded('mbstring') or die('skip');
 function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build");
+if (PHP_INT_SIZE != 8) die('skip 64-bit only');
 ?>
 --FILE--
 <?php
index 8f4370f4b8480ec02ace67541e89f3c525755ba5..c7e17be2eccea9a7aa0f607d0f825ac010f8f3ac 100644 (file)
@@ -4,6 +4,7 @@ Test mb_strripos() function : usage variations - pass different data types as $o
 <?php
 extension_loaded('mbstring') or die('skip');
 function_exists('mb_strripos') or die("skip mb_strripos() is not available in this build");
+if (PHP_INT_SIZE != 8) die('skip 64-bit only');
 ?>
 --FILE--
 <?php
index a3585e54201e7fcb335e079d135ce056ba4c3a5a..ba25bf570ff2b6c756283e200c1204d9935fec79 100644 (file)
@@ -3,6 +3,7 @@ Test function gzfile() by substituting argument 2 with float values.
 --SKIPIF--
 <?php
 if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
+if (PHP_INT_SIZE != 8) die('skip 64-bit only');
 ?>
 --FILE--
 <?php
@@ -126,4 +127,4 @@ array(6) {
   string(39) "and I know that it descends down on me
 "
 }
-===DONE===
\ No newline at end of file
+===DONE===
index 59e45a893c07b25ef0a5046ca31db6a250261cea..0210a759054054e19c63985401a960ccadff937a 100644 (file)
@@ -4,7 +4,8 @@ Test gzopen() function : usage variation
 <?php 
 if (!extension_loaded("zlib")) {
        print "skip - zlib extension not loaded"; 
-}       
+}
+if (PHP_INT_SIZE != 8) die('skip 64-bit only');
 ?>
 --FILE--
 <?php
index 01dc78721db0934372838380a7272662e9c961a8..6dd9c2ff39ddf55b9be161c2d150e01fc6214dce 100644 (file)
@@ -3,6 +3,7 @@ Test function readgzfile() by substituting argument 2 with float values.
 --SKIPIF--
 <?php
 if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
+if (PHP_INT_SIZE != 8) die('skip 64-bit only');
 ?>
 --FILE--
 <?php
@@ -61,4 +62,4 @@ Destiny who cares
 as it turns around
 and I know that it descends down on me
 int(176)
-===DONE===
\ No newline at end of file
+===DONE===