Skip to content

Commit acc21cd

Browse files
committed
Add SKIPIF to skip 32bits + fix comment + add missing trailing newline
1 parent 5460ffa commit acc21cd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ext/standard/tests/array/array_fill_error2.phpt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
--TEST--
22
Test array_fill() function : error conditions - count is too large
3+
--SKIPIF--
4+
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?>
35
--FILE--
46
<?php
5-
echo "*** Testing array_fill() : error conditions - count is too large ***\n";
7+
echo "*** Testing array_fill() : error conditions ***\n";
68

79
$intMax = 2147483647;
810

@@ -18,7 +20,7 @@ $array = array_fill(0, $intMax, 1);
1820

1921
?>
2022
--EXPECTF--
21-
*** Testing array_fill() : error conditions - count is too large ***
23+
*** Testing array_fill() : error conditions ***
2224
array_fill(): Argument #2 ($count) is too large
2325

24-
Fatal error: Possible integer overflow in memory allocation (%d * %d + %d) in %s on line %d
26+
Fatal error: Possible integer overflow in memory allocation (%d * %d + %d) in %s on line %d

0 commit comments

Comments
 (0)