]> granicus.if.org Git - php/commitdiff
- Fix tests for different platforms
authorFelipe Pena <felipe@php.net>
Thu, 25 Dec 2008 13:30:38 +0000 (13:30 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 25 Dec 2008 13:30:38 +0000 (13:30 +0000)
ext/standard/tests/array/array_slice_variation2.phpt
ext/standard/tests/array/array_slice_variation3.phpt

index a94549e5e1dff8969c0b9dc2b3d33b7b0da2ca34..e81ef2e2dd566bfdb890eb0232e97c7684595a86 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Test array_slice() function : usage variations - Pass different data types as $offset arg
+--INI--
+precision=12
 --FILE--
 <?php
 /* Prototype  : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]])
@@ -150,7 +152,15 @@ array(4) {
 }
 
 -- Iteration 7 --
-array(0) {
+array(4) {
+  ["one"]=>
+  int(1)
+  [0]=>
+  int(2)
+  ["three"]=>
+  int(3)
+  [1]=>
+  int(4)
 }
 
 -- Iteration 8 --
index 10bd30824dee3c7a9d44e8796eb58d250ad8b7b5..e3ffa21d9ff08f6cf371a6a1e0a33fb53b57df86 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]])