Skip to content

Commit 8623a85

Browse files
committed
Skip test on big-endian architectures
Due to the memory layout on BE architectures, the address would be `0x2a00000000` instead of `0x2a` on little-endian architectures.
1 parent 4b0d5e0 commit 8623a85

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)