com php-src: Updated or skipped certain 32-bit tests: ext/bcmath/tests/bug60377.phpt ext/curl/tests/curl_version_ variation1.phpt
ext/exif/tests/exif_tagname_variation 1.phpt ext/gd/tests/imagecolorallocate_variation2.p hpt ext/gd/tests/imagecolorallocate_variation4.phpt e
xt/intl/tests/bug53512.phpt ext/intl/tests/bug6 1487.phpt ext/intl/tests/collator_get_locale2 .phpt ext/intl/tests/dateformat_get_locale.phpt ext
/intl/tests/formatter_get_set_symbol2

From: Date: Wed, 17 Dec 2014 01:06:48 +0000
Subject: com php-src: Updated or skipped certain 32-bit tests: ext/bcmath/tests/bug60377.phpt ext/curl/tests/curl_version_ variation1.phpt
ext/exif/tests/exif_tagname_variation 1.phpt ext/gd/tests/imagecolorallocate_variation2.p hpt ext/gd/tests/imagecolorallocate_variation4.phpt e
xt/intl/tests/bug53512.phpt ext/intl/tests/bug6 1487.phpt ext/intl/tests/collator_get_locale2 .phpt ext/intl/tests/dateformat_get_locale.phpt ext
/intl/tests/formatter_get_set_symbol2
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-83763@lists.php.net to get a copy of this message
Commit: 1392102b0cfe7cf1b1ae06356d36f2555af7a161 Author: Andrea Faulds <ajf@ajf.me> Wed, 17 Dec 2014 01:06:48 +0000 Parents: ea7f768b2fc49f877b29db88c52506b7e6d41007 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1392102b0cfe7cf1b1ae06356d36f2555af7a161 Log: Updated or skipped certain 32-bit tests Changed paths: M ext/bcmath/tests/bug60377.phpt M ext/curl/tests/curl_version_variation1.phpt M ext/exif/tests/exif_tagname_variation1.phpt M ext/gd/tests/imagecolorallocate_variation2.phpt M ext/gd/tests/imagecolorallocate_variation4.phpt M ext/intl/tests/bug53512.phpt M ext/intl/tests/bug61487.phpt M ext/intl/tests/collator_get_locale2.phpt M ext/intl/tests/dateformat_get_locale.phpt M ext/intl/tests/formatter_get_set_symbol2.phpt M ext/mbstring/tests/mb_encode_mimeheader_variation5.phpt M ext/mbstring/tests/mb_split_variation3.phpt M ext/mbstring/tests/mb_stripos_variation3.phpt M ext/mbstring/tests/mb_strpos_variation3.phpt M ext/mbstring/tests/mb_strripos_variation3_Bug45923.phpt M ext/zlib/tests/gzfile_variation11.phpt M ext/zlib/tests/gzopen_variation3.phpt M ext/zlib/tests/readgzfile_variation11.phpt

diff --git a/ext/bcmath/tests/bug60377.phpt b/ext/bcmath/tests/bug60377.phpt index 7c42002..af7f7d4 100644 --- a/ext/bcmath/tests/bug60377.phpt +++ b/ext/bcmath/tests/bug60377.phpt @@ -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); diff --git a/ext/curl/tests/curl_version_variation1.phpt b/ext/curl/tests/curl_version_variation1.phpt index 927b4ac..8b9554e 100644 --- a/ext/curl/tests/curl_version_variation1.phpt +++ b/ext/curl/tests/curl_version_variation1.phpt @@ -1,7 +1,8 @@ --TEST-- Test curl_version() function : usage variations - test values for $ascii argument --SKIPIF-- -<?php if (!extension_loaded("curl")) exit("skip curl extension not loaded"); ?> +<?php if (!extension_loaded("curl")) exit("skip curl extension not loaded"); +if (PHP_INT_SIZE != 8) die('skip 64-bit only'); ?> --FILE-- <?php diff --git a/ext/exif/tests/exif_tagname_variation1.phpt b/ext/exif/tests/exif_tagname_variation1.phpt index 0f9c135..efa227e 100644 --- a/ext/exif/tests/exif_tagname_variation1.phpt +++ b/ext/exif/tests/exif_tagname_variation1.phpt @@ -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 diff --git a/ext/gd/tests/imagecolorallocate_variation2.phpt b/ext/gd/tests/imagecolorallocate_variation2.phpt index bd9dc98..84ff9e2 100644 --- a/ext/gd/tests/imagecolorallocate_variation2.phpt +++ b/ext/gd/tests/imagecolorallocate_variation2.phpt @@ -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 diff --git a/ext/gd/tests/imagecolorallocate_variation4.phpt b/ext/gd/tests/imagecolorallocate_variation4.phpt index 328a4cd..8b82d01 100644 --- a/ext/gd/tests/imagecolorallocate_variation4.phpt +++ b/ext/gd/tests/imagecolorallocate_variation4.phpt @@ -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=== diff --git a/ext/intl/tests/bug53512.phpt b/ext/intl/tests/bug53512.phpt index a1b1dcf..0de2c49 100644 --- a/ext/intl/tests/bug53512.phpt +++ b/ext/intl/tests/bug53512.phpt @@ -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 diff --git a/ext/intl/tests/bug61487.phpt b/ext/intl/tests/bug61487.phpt index 361debe..2270b25 100644 --- a/ext/intl/tests/bug61487.phpt +++ b/ext/intl/tests/bug61487.phpt @@ -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)); diff --git a/ext/intl/tests/collator_get_locale2.phpt b/ext/intl/tests/collator_get_locale2.phpt index 798c792..e9a9f26 100644 --- a/ext/intl/tests/collator_get_locale2.phpt +++ b/ext/intl/tests/collator_get_locale2.phpt @@ -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 diff --git a/ext/intl/tests/dateformat_get_locale.phpt b/ext/intl/tests/dateformat_get_locale.phpt index 17fcca3..48b7daa 100644 --- a/ext/intl/tests/dateformat_get_locale.phpt +++ b/ext/intl/tests/dateformat_get_locale.phpt @@ -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 diff --git a/ext/intl/tests/formatter_get_set_symbol2.phpt b/ext/intl/tests/formatter_get_set_symbol2.phpt index 769713b..3f982cd 100644 --- a/ext/intl/tests/formatter_get_set_symbol2.phpt +++ b/ext/intl/tests/formatter_get_set_symbol2.phpt @@ -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 diff --git a/ext/mbstring/tests/mb_encode_mimeheader_variation5.phpt b/ext/mbstring/tests/mb_encode_mimeheader_variation5.phpt index d57bc10..4833cd5 100644 --- a/ext/mbstring/tests/mb_encode_mimeheader_variation5.phpt +++ b/ext/mbstring/tests/mb_encode_mimeheader_variation5.phpt @@ -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 diff --git a/ext/mbstring/tests/mb_split_variation3.phpt b/ext/mbstring/tests/mb_split_variation3.phpt index 5422b16..ec20c53 100644 --- a/ext/mbstring/tests/mb_split_variation3.phpt +++ b/ext/mbstring/tests/mb_split_variation3.phpt @@ -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 diff --git a/ext/mbstring/tests/mb_stripos_variation3.phpt b/ext/mbstring/tests/mb_stripos_variation3.phpt index decf02e..122a599 100644 --- a/ext/mbstring/tests/mb_stripos_variation3.phpt +++ b/ext/mbstring/tests/mb_stripos_variation3.phpt @@ -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 diff --git a/ext/mbstring/tests/mb_strpos_variation3.phpt b/ext/mbstring/tests/mb_strpos_variation3.phpt index ff69b8c..ac78b62 100644 --- a/ext/mbstring/tests/mb_strpos_variation3.phpt +++ b/ext/mbstring/tests/mb_strpos_variation3.phpt @@ -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 diff --git a/ext/mbstring/tests/mb_strripos_variation3_Bug45923.phpt b/ext/mbstring/tests/mb_strripos_variation3_Bug45923.phpt index 8f4370f..c7e17be 100644 --- a/ext/mbstring/tests/mb_strripos_variation3_Bug45923.phpt +++ b/ext/mbstring/tests/mb_strripos_variation3_Bug45923.phpt @@ -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 diff --git a/ext/zlib/tests/gzfile_variation11.phpt b/ext/zlib/tests/gzfile_variation11.phpt index a3585e5..ba25bf5 100644 --- a/ext/zlib/tests/gzfile_variation11.phpt +++ b/ext/zlib/tests/gzfile_variation11.phpt @@ -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=== diff --git a/ext/zlib/tests/gzopen_variation3.phpt b/ext/zlib/tests/gzopen_variation3.phpt index 59e45a8..0210a75 100644 --- a/ext/zlib/tests/gzopen_variation3.phpt +++ b/ext/zlib/tests/gzopen_variation3.phpt @@ -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 diff --git a/ext/zlib/tests/readgzfile_variation11.phpt b/ext/zlib/tests/readgzfile_variation11.phpt index 01dc787..6dd9c2f 100644 --- a/ext/zlib/tests/readgzfile_variation11.phpt +++ b/ext/zlib/tests/readgzfile_variation11.phpt @@ -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===
« previous php.cvs (#83763) next »