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

From: Date: Wed, 03 Jan 2001 15:48:41 +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-42837@lists.php.net to get a copy of this message
ID: 8535 Updated by: sniper Reported By: KOT@MATPOCKuH.SPb.Ru Old-Status: Open Status: Closed Bug Type: *Web Server problem Assigned To: Comments: This is fixed already. Try latest snapshot from http://snaps.php.net/ --Jani Previous Comments: --------------------------------------------------------------------------- [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 (#42837) next »