Skip to content

Commit b8db432

Browse files
committed
Skip crypt_shared tests on 32-bit platforms
1 parent 9f33c58 commit b8db432

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/utils/skipif.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,10 @@ function skip_if_crypt_shared()
459459

460460
function skip_if_no_crypt_shared()
461461
{
462+
if (PHP_INT_SIZE !== 8) {
463+
exit('skip crypt_shared is only available on 64-bit systems');
464+
}
465+
462466
// Intentionally consider empty values for CRYPT_SHARED_LIB_PATH
463467
if ( ! getenv('CRYPT_SHARED_LIB_PATH')) {
464468
exit('skip crypt_shared is not available');

0 commit comments

Comments
 (0)