Bug #63174 [PATCH]: Magic negative number generated by rand
| From: | cmb@php.net | Date: | Wed, 15 Jul 2015 22:32:50 +0000 |
| Subject: | Bug #63174 [PATCH]: Magic negative number generated by rand | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194469@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63174&edit=1
ID: 63174
Patch added by: cmb@php.net
Reported by: ub dot x7b8 at gmail dot com
Summary: Magic negative number generated by rand
Status: Verified
Type: Bug
Package: *Math Functions
Operating System: 32bit
PHP Version: Irrelevant
Assigned To: bishop
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: rand-range-double
Revision: 1436999569
URL: https://bugs.php.net/patch-display.php?bug=63174&patch=rand-range-double&revision=1436999569
Previous Comments:
------------------------------------------------------------------------
[2015-07-13 20:06:48] bishop@php.net
https://github.com/php/php-src/pull/1416
------------------------------------------------------------------------
[2015-07-09 16:12:04] bishop@php.net
Duplicated by #70003.
------------------------------------------------------------------------
[2015-07-09 15:52:03] bishop@php.net
@yohgaki That's because 3v4l runs 64-bit: http://3v4l.org/a8KaY
This problem only manifests when there's overflow on 32-bit platforms.
------------------------------------------------------------------------
[2015-07-08 21:50:55] yohgaki@php.net
It seems working well on 3v4l.
http://3v4l.org/BqqSr
------------------------------------------------------------------------
[2015-07-07 10:55:14] cmb@php.net
Related To: Bug #70003
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=63174
--
Edit this bug report at https://bugs.php.net/bug.php?id=63174&edit=1