1--TEST-- 264bit pack()/unpack() tests 3--SKIPIF-- 4<?php 5if (PHP_INT_SIZE > 4) { 6 die("skip 32bit test only"); 7} 8?> 9--FILE-- 10<?php 11var_dump(pack("Q", 0)); 12var_dump(pack("J", 0)); 13var_dump(pack("P", 0)); 14var_dump(pack("q", 0)); 15 16var_dump(unpack("Q", '')); 17var_dump(unpack("J", '')); 18var_dump(unpack("P", '')); 19var_dump(unpack("q", '')); 20?> 21--EXPECTF-- 22Warning: pack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 23bool(false) 24 25Warning: pack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 26bool(false) 27 28Warning: pack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 29bool(false) 30 31Warning: pack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 32bool(false) 33 34Warning: unpack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 35bool(false) 36 37Warning: unpack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 38bool(false) 39 40Warning: unpack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 41bool(false) 42 43Warning: unpack(): 64-bit format codes are not available for 32-bit versions of PHP in %s on line %d 44bool(false) 45