summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-04-13 23:24:40 +0200
committerDmitry Stogov <dmitry@zend.com>2020-04-14 20:31:31 +0300
commit8c5faf7ad1a28edd7c20a474602b77c3ebae911e (patch)
tree53d4cc24f871f695200e1572741d27bd06a44af7
parent537680a9c457f28780fa8d4138e6cbeba3365929 (diff)
downloadphp-git-8c5faf7ad1a28edd7c20a474602b77c3ebae911e.tar.gz
Fix #79472: ext/ffi/tests/040.phpt TC fails on Big endian arch
For now we are choosing the simplest solution, namely to skip the test on big-endian architectures.
-rw-r--r--ext/ffi/tests/040.phpt7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/ffi/tests/040.phpt b/ext/ffi/tests/040.phpt
index 24bcfb6307..54f48f809e 100644
--- a/ext/ffi/tests/040.phpt
+++ b/ext/ffi/tests/040.phpt
@@ -1,7 +1,12 @@
--TEST--
FFI 040: Support for scalar types
--SKIPIF--
-<?php require_once('skipif.inc'); ?>
+<?php
+require_once('skipif.inc');
+if (pack('S', 0xABCD) !== pack('v', 0xABCD)) {
+ die('skip for little-endian architectures only');
+}
+?>
--INI--
ffi.enable=1
--FILE--