Skip to content

Commit 8c5faf7

Browse files
cmb69dstogov
authored andcommitted
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.
1 parent 537680a commit 8c5faf7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ext/ffi/tests/040.phpt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
--TEST--
22
FFI 040: Support for scalar types
33
--SKIPIF--
4-
<?php require_once('skipif.inc'); ?>
4+
<?php
5+
require_once('skipif.inc');
6+
if (pack('S', 0xABCD) !== pack('v', 0xABCD)) {
7+
die('skip for little-endian architectures only');
8+
}
9+
?>
510
--INI--
611
ffi.enable=1
712
--FILE--

0 commit comments

Comments
 (0)