com php-src: Added test for bug #71201: ext/standard/tests/math /round_bug71201.phpt
| From: | Anatol Belski | Date: | Wed, 23 Dec 2015 17:18:02 +0000 |
| Subject: | com php-src: Added test for bug #71201: ext/standard/tests/math /round_bug71201.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-90424@lists.php.net to get a copy of this message | ||
Commit: 50c4be0309a63c51b00b97566493aa401d0f7562
Author: Anatol Belski <ab@php.net> Wed, 23 Dec 2015 18:18:02 +0100
Parents: 0d822f6df946764f3f0348b82efae2e1eaa83aa0
Branches: PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=50c4be0309a63c51b00b97566493aa401d0f7562
Log:
Added test for bug #71201
Bugs:
https://bugs.php.net/71201
Changed paths:
A ext/standard/tests/math/round_bug71201.phpt
Diff:
diff --git a/ext/standard/tests/math/round_bug71201.phpt
b/ext/standard/tests/math/round_bug71201.phpt
new file mode 100644
index 0000000..43a5e11
--- /dev/null
+++ b/ext/standard/tests/math/round_bug71201.phpt
@@ -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===