mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Updated or skipped certain 32-bit tests
This commit is contained in:
parent
ea7f768b2f
commit
1392102b0c
@ -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);
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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===
|
||||
===DONE===
|
||||
|
@ -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
|
||||
|
||||
|
@ -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));
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
Done
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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===
|
||||
===DONE===
|
||||
|
@ -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
|
||||
|
@ -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===
|
||||
===DONE===
|
||||
|
Loading…
Reference in New Issue
Block a user