]> granicus.if.org Git - php/commitdiff
Add SKIPIF (32bit platform only)
authorFelipe Pena <felipe@php.net>
Fri, 14 Mar 2008 23:13:07 +0000 (23:13 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 14 Mar 2008 23:13:07 +0000 (23:13 +0000)
ext/standard/tests/array/array_push_error2.phpt
ext/standard/tests/array/natcasesort_variation3.phpt
ext/standard/tests/array/rsort_variation3.phpt

index c001e1085bebeebb9bca1a51711e32bb6eed35b8..86f8df78b06b75117aebf944e2030f5330841b09 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Test array_push() function : error conditions - min and max int values as keys
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
+?>
 --FILE--
 <?php
 /* Prototype  : int array_push(array $stack, mixed $var [, mixed $...])
@@ -46,4 +50,4 @@ array(3) {
   [-2147483648]=>
   string(3) "new"
 }
-Done
\ No newline at end of file
+Done
index 49781710b660b27aafcf421d2683216727b51a7e..f15150843321006faa9065bcd4ba547beaa97d9f 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Test natcasesort() function : usage variations - different numeric types
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
+?>
 --FILE--
 <?php
 /* Prototype  : bool natcasesort(array &$array_arg)
@@ -128,4 +132,4 @@ array(7) {
   [1]=>
   float(2147483648)
 }
-Done
\ No newline at end of file
+Done
index c0c11b5f050c5601e0008169d291f382147a3bd4..798e148c7bc8ae09f74c52a4255fba1e77f56434 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Test rsort() function : usage variations - numeric values
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
+?>
 --FILE--
 <?php
 /* Prototype  : bool rsort(array &$array_arg [, int $sort_flags])
@@ -318,4 +322,4 @@ array(7) {
   [6]=>
   float(-2147483649)
 }
-Done
\ No newline at end of file
+Done