]> granicus.if.org Git - php/commitdiff
Fixed tests again after double->long conversion change (to match 5.2)
authorMatt Wilmas <mattwil@php.net>
Fri, 5 Jun 2009 17:15:18 +0000 (17:15 +0000)
committerMatt Wilmas <mattwil@php.net>
Fri, 5 Jun 2009 17:15:18 +0000 (17:15 +0000)
ext/standard/tests/array/array_slice_variation2.phpt
ext/standard/tests/array/array_slice_variation3.phpt
ext/standard/tests/math/decbin_variation1_64bit.phpt
ext/standard/tests/math/dechex_variation1_64bit.phpt
ext/standard/tests/math/decoct_variation1_64bit.phpt

index e5c84ea0b3a46b6398e33b4bf872ab4ba1ac3351..f01aef6d5bf2e047b88180f2da4f1596007f843f 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Test array_slice() function : usage variations - Pass different data types as $offset arg
+--SKIPIF--
+<?php if (PHP_INT_SIZE > 4) die("skip this test is for 32bit platform only"); ?>
 --FILE--
 <?php
 /* Prototype  : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]])
index 135ca15e5388dad1ca658003cc0ea67fbcc6e793..acd009f2fd0f68b1e0396eaf6d75134e79abc204 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Test array_slice() function : usage variations - Pass different data types as $length arg
+--SKIPIF--
+<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?>
 --FILE--
 <?php
 /* Prototype  : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]])
@@ -118,7 +120,11 @@ array(0) {
 }
 
 -- Iteration 7 --
-array(0) {
+array(2) {
+  [u"three"]=>
+  int(3)
+  [0]=>
+  int(4)
 }
 
 -- Iteration 8 --
index 5811fca598c8d005c85db964d7ac1922526dd123..0ab23040d9902718bbc39e9f6fd3357e018c8d2a 100644 (file)
@@ -107,7 +107,7 @@ unicode(14) "11000000111001"
 unicode(64) "1111111111111111111111111111111111111111111111111111011011010111"
 
 -- Iteration 5 --
-unicode(63) "111111111111111111111111111111111111111111111111111111111111111"
+unicode(1) "0"
 
 -- Iteration 6 --
 unicode(1) "0"
index 0b2303dfd8e4c042db08dfb2a93271c6ea091742..34230281337be8a028b4baaffbcb8a544b9be999 100644 (file)
@@ -107,7 +107,7 @@ unicode(4) "3039"
 unicode(16) "fffffffffffff6d7"
 
 -- Iteration 5 --
-unicode(16) "7fffffffffffffff"
+unicode(1) "0"
 
 -- Iteration 6 --
 unicode(1) "0"
index d51540da09938a3f2bcfed503ece11753d807034..4512713d4e0ac523911bb657f54ac319272f74ef 100644 (file)
@@ -108,7 +108,7 @@ unicode(5) "30071"
 unicode(22) "1777777777777777773327"
 
 -- Iteration 5 --
-unicode(21) "777777777777777777777"
+unicode(1) "0"
 
 -- Iteration 6 --
 unicode(1) "0"