Skip to content

Commit 4337cf6

Browse files
committed
[skip ci] use die() instead of echo for 64-bit skip condition
1 parent 7c86d86 commit 4337cf6

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

ext/date/tests/gh-124.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Test for timelib #124: Problem with large negative timestamps
44
date.timezone=UTC
55
--SKIPIF--
66
<?php
7-
if (PHP_INT_SIZE != 8) echo "skip this test is for 64-bit only";
7+
if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
88
if (getenv('SKIP_ASAN')) die('skip triggers undefined behavior');
99
?>
1010
--FILE--

ext/ffi/tests/gh10403.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ GH-10403: Fix incorrect bitshifting and masking in ffi bitfield
33
--EXTENSIONS--
44
ffi
55
--SKIPIF--
6-
<?php if (PHP_INT_SIZE != 8) echo "skip this test is for 64-bit only"; ?>
6+
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only"); ?>
77
--FILE--
88
<?php
99
$ffi = FFI::cdef(<<<EOF

ext/gmp/tests/gmp_php_int_max.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PHP_INT_MAX tests
44
gmp
55
--SKIPIF--
66
<?php
7-
if (PHP_INT_SIZE != 8) print "skip";
7+
if (PHP_INT_SIZE != 8) die("skip");
88
?>
99
--FILE--
1010
<?php

ext/standard/tests/GHSA-96wq-48vp-hh57.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ memory_limit=3G
88
<?php
99
if (!getenv('RUN_RESOURCE_HEAVY_TESTS')) die('skip resource-heavy test');
1010
if (getenv('SKIP_SLOW_TESTS')) die('skip slow test');
11-
if (PHP_INT_SIZE != 8) echo 'skip 64-bit only';
11+
if (PHP_INT_SIZE != 8) die('skip 64-bit only');
1212
?>
1313
--FILE--
1414
<?php

0 commit comments

Comments
 (0)