]> granicus.if.org Git - php/commitdiff
MFH: Fixed tests again after double->long conversion change (to match 5.2)
authorMatt Wilmas <mattwil@php.net>
Fri, 5 Jun 2009 17:15:33 +0000 (17:15 +0000)
committerMatt Wilmas <mattwil@php.net>
Fri, 5 Jun 2009 17:15:33 +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 d293ce58d71d26ec4e769d8ba63108fac221cf33..217788fec7b17904040b1d8b0010d9fa44917d27 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 0aafa645eb9564fb90c97b5d0b0b6b402b79b632..bdcb7591a2990744ccf2f8f18d511cd24230bb29 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) {
+  ["three"]=>
+  int(3)
+  [0]=>
+  int(4)
 }
 
 -- Iteration 8 --
index ed2d61ae341590c62afb0f330997288e08ae721a..e82ee3e88c82d2400f5dde9e7c20b4cadf0c9064 100644 (file)
@@ -107,7 +107,7 @@ string(14) "11000000111001"
 string(64) "1111111111111111111111111111111111111111111111111111011011010111"
 
 -- Iteration 5 --
-string(63) "111111111111111111111111111111111111111111111111111111111111111"
+string(1) "0"
 
 -- Iteration 6 --
 string(1) "0"
index f185875a5faa1ab4cb2e1577f0fd5277e6187489..a513264df2b656c0983678976bf0735b8ba4257f 100644 (file)
@@ -107,7 +107,7 @@ string(4) "3039"
 string(16) "fffffffffffff6d7"
 
 -- Iteration 5 --
-string(16) "7fffffffffffffff"
+string(1) "0"
 
 -- Iteration 6 --
 string(1) "0"
index 5418f3628e91ad54bc2cba181e3d510cb32ea441..40afafa10a1e9ca474aa50851e433ba9af408b07 100644 (file)
@@ -108,7 +108,7 @@ string(5) "30071"
 string(22) "1777777777777777773327"
 
 -- Iteration 5 --
-string(21) "777777777777777777777"
+string(1) "0"
 
 -- Iteration 6 --
 string(1) "0"