We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d4b955 commit 0052203Copy full SHA for 0052203
ext/standard/tests/strings/gh18976.phpt
@@ -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
11
+ pack('H2147483647');
12
13
14
15
+?>
16
+--EXPECT--
17
+Type h: integer overflow in format string
18
+Type H: integer overflow in format string
0 commit comments