mirror of
https://github.com/php/php-src.git
synced 2026-04-08 08:33:06 +02:00
add edge case test
This commit is contained in:
@@ -96,8 +96,9 @@ print_r(unpack("v", pack("v", 0)));
|
||||
print_r(unpack("v", pack("v", -1000)));
|
||||
print_r(unpack("v", pack("v", -64434)));
|
||||
print_r(unpack("v", pack("v", -65535)));
|
||||
print_r(unpack(-2147483647, "junk"));
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECTF--
|
||||
Array
|
||||
(
|
||||
[1] => h
|
||||
@@ -383,3 +384,5 @@ Array
|
||||
(
|
||||
[1] => 1
|
||||
)
|
||||
|
||||
Warning: unpack(): Invalid format type - in %s on line %d
|
||||
|
||||
Reference in New Issue
Block a user