Skip to content

Commit ed1ad33

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fix #79472: ext/ffi/tests/040.phpt TC fails on Big endian arch
2 parents e88169e + 8c5faf7 commit ed1ad33

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)