Skip to content

Commit 125682f

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Skip test on big-endian architectures
2 parents 650ab37 + 8623a85 commit 125682f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/ffi/tests/bug79571.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ Bug #79571 (FFI: var_dumping unions may segfault)
33
--SKIPIF--
44
<?php
55
if (!extension_loaded('ffi')) die('skip ffi extension not available');
6+
if (pack('S', 0xABCD) !== pack('v', 0xABCD)) {
7+
die('skip for little-endian architectures only');
8+
}
69
?>
710
--FILE--
811
<?php

0 commit comments

Comments
 (0)