PHP 4.0 Bug #7617 Updated: Floating point exception when starting PHP cgi binary
| From: | sniper@php.net | Date: | Tue, 09 Jan 2001 22:45:31 +0000 |
| Subject: | PHP 4.0 Bug #7617 Updated: Floating point exception when starting PHP cgi binary | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-43614@lists.php.net to get a copy of this message | ||
ID: 7617
Updated by: sniper
Reported By: bjoern@baer.main.de
Status: Closed
Bug Type: Reproduceable crash
Assigned To:
Comments:
Fix committed by Derick Rethans.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-12-23 08:59:06] bjoern@baer.main.de
It works now when changing line 109 in ext/standard/crypt.c to the following code:
srand48((long)time(NULL) * (long)getpid() * (long)(php_combined_lcg()*(double)10000.0));
With this code PHP doesn't crash under FreeBSD with a floating point exception and everything
works fine. Please be so kind and change the code in CVS, thanks.
---------------------------------------------------------------------------
[2000-11-29 15:57:49] sniper@php.net
Do you have any example code (short) which can be used to reproduce this?
--Jani
---------------------------------------------------------------------------
[2000-11-28 18:33:26] bjoern@baer.main.de
Doesn't work :-(
---------------------------------------------------------------------------
[2000-11-03 12:56:51] bjoern@baer.main.de
Same result as above.
---------------------------------------------------------------------------
[2000-11-03 11:41:05] sniper@php.net
please update your cvs..and if it still crashes, reopen
this bug report.
--Jani
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
Full Bug description available at: http://bugs.php.net/?id=7617