com php-src: Added test for bug #71201: ext/standard/tests/math /round_bug71201.phpt
| From: | Anatol Belski | Date: | Wed, 23 Dec 2015 17:26:56 +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-90427@lists.php.net to get a copy of this message | ||
Commit: 204faa5c3674e017c34aac23d2059fec8d9f0c38
Author: Anatol Belski <ab@php.net> Wed, 23 Dec 2015 18:18:02 +0100
Parents: 95454c448bdd540adc32e780f0b4ea7bfd80cb28
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=204faa5c3674e017c34aac23d2059fec8d9f0c38
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===