Skip to content

Commit 0052203

Browse files
committed
add test
1 parent 4d4b955 commit 0052203

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
--TEST--
2+
GH-15613 overflow on hex strings repeater value
3+
--FILE--
4+
<?php
5+
try {
6+
pack('h2147483647');
7+
} catch (ValueError $e) {
8+
echo $e->getMessage(), PHP_EOL;
9+
}
10+
try {
11+
pack('H2147483647');
12+
} catch (ValueError $e) {
13+
echo $e->getMessage(), PHP_EOL;
14+
}
15+
?>
16+
--EXPECT--
17+
Type h: integer overflow in format string
18+
Type H: integer overflow in format string

0 commit comments

Comments
 (0)