]> granicus.if.org Git - php/commitdiff
Added test for bug #71201
authorAnatol Belski <ab@php.net>
Wed, 23 Dec 2015 17:18:02 +0000 (18:18 +0100)
committerAnatol Belski <ab@php.net>
Wed, 23 Dec 2015 17:18:02 +0000 (18:18 +0100)
ext/standard/tests/math/round_bug71201.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/math/round_bug71201.phpt b/ext/standard/tests/math/round_bug71201.phpt
new file mode 100644 (file)
index 0000000..43a5e11
--- /dev/null
@@ -0,0 +1,10 @@
+--TEST--
+Bug #71201 round() segfault on 64-bit builds
+--FILE--
+<?php
+echo round(1.0, -2147483648), "\n";
+?>
+===DONE===
+--EXPECT--
+0
+===DONE===