PHP 4.0 Bug #8535 Updated: Floating point exception on httpd start

From: Date: Mon, 08 Jan 2001 20:47:32 +0000
Subject: PHP 4.0 Bug #8535 Updated: Floating point exception on httpd start
Groups: php.dev 
Request: Send a blank email to php-dev+get-43457@lists.php.net to get a copy of this message
ID: 8535 Updated by: derick Reported By: KOT@MATPOCKuH.SPb.Ru Status: Closed Bug Type: *Web Server problem Assigned To: Comments: This was NOT fixed in cvs. Another user reported the segfault, after changing the suggested line, it compiled and worked fine. Fixed in CVS now. Previous Comments: --------------------------------------------------------------------------- [2001-01-03 10:48:41] sniper@php.net This is fixed already. Try latest snapshot from http://snaps.php.net/ --Jani --------------------------------------------------------------------------- [2001-01-03 10:46:26] KOT@MATPOCKuH.SPb.Ru When running httpd I got the following error: Floating point exception - core dumped. After analysing of core file I found that error is here: php-4.0.4/ext/standard/crypt.c (109): srand48((unsigned int) time(0) * getpid() * (php_combined_lcg() * 10000.0)); I have changed this line with: srand48((long)time(0) * (long)getpid() * (long)(php_combined_lcg() * 10000.0)); and error disappeared... --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8535

« previous php.dev (#43457) next »