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

From: Date: Wed, 03 Jan 2001 15:46:26 +0000
Subject: PHP 4.0 Bug #8535: Floating point exception on httpd start
Groups: php.dev 
Request: Send a blank email to php-dev+get-42834@lists.php.net to get a copy of this message
From: KOT@MATPOCKuH.SPb.Ru Operating system: FreeBSD 3.3-STABLE PHP version: 4.0.4 PHP Bug Type: *Web Server problem Bug description: Floating point exception on httpd start 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... -- Edit Bug report at: http://bugs.php.net/?id=8535&edit=1

« previous php.dev (#42834) next »