Skip to content

Commit 8f4db49

Browse files
committed
add test
1 parent 47997d9 commit 8f4db49

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--TEST--
2+
GH-19899 (undefined behavior with zend_strtod with large digits as strings)
3+
--INI--
4+
memory_limit=-1
5+
--SKIPIF--
6+
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?>
7+
--FILE--
8+
<?php
9+
str_repeat("1", (int)str_repeat("1", 2147483648));
10+
echo "OK"
11+
?>
12+
--EXPECT--
13+
OK

0 commit comments

Comments
 (0)