Commit a59f6ec09b6 for php.net
commit a59f6ec09b64a9c6f83bdf540d9c409853699d4a
Author: Weilin Du <weilindu@php.net>
Date: Sun Jun 14 17:27:46 2026 +0800
[skip ci] use die() instead of echo for 64-bit skip condition (#22299)
Follow up to #22247
SKIPIF condition should indeed exit the process to signal a problem.
diff --git a/ext/date/tests/gh-124.phpt b/ext/date/tests/gh-124.phpt
index 074e519d439..30cccd74ef1 100644
--- a/ext/date/tests/gh-124.phpt
+++ b/ext/date/tests/gh-124.phpt
@@ -4,7 +4,7 @@
date.timezone=UTC
--SKIPIF--
<?php
-if (PHP_INT_SIZE != 8) echo "skip this test is for 64-bit only";
+if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
if (getenv('SKIP_ASAN')) die('skip triggers undefined behavior');
?>
--FILE--
diff --git a/ext/ffi/tests/gh10403.phpt b/ext/ffi/tests/gh10403.phpt
index 6bac0da9258..1c5c69113ee 100644
--- a/ext/ffi/tests/gh10403.phpt
+++ b/ext/ffi/tests/gh10403.phpt
@@ -3,7 +3,7 @@
--EXTENSIONS--
ffi
--SKIPIF--
-<?php if (PHP_INT_SIZE != 8) echo "skip this test is for 64-bit only"; ?>
+<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only"); ?>
--FILE--
<?php
$ffi = FFI::cdef(<<<EOF
diff --git a/ext/gmp/tests/gmp_php_int_max.phpt b/ext/gmp/tests/gmp_php_int_max.phpt
index a4974dac605..d26d1b06489 100644
--- a/ext/gmp/tests/gmp_php_int_max.phpt
+++ b/ext/gmp/tests/gmp_php_int_max.phpt
@@ -4,7 +4,7 @@
gmp
--SKIPIF--
<?php
-if (PHP_INT_SIZE != 8) print "skip";
+if (PHP_INT_SIZE != 8) die("skip");
?>
--FILE--
<?php