PHP 4.0 Bug #8648: Core dump while loading DSO into apache

From: Date: Thu, 11 Jan 2001 03:53:00 +0000
Subject: PHP 4.0 Bug #8648: Core dump while loading DSO into apache
Groups: php.dev 
Request: Send a blank email to php-dev+get-43754@lists.php.net to get a copy of this message
From: mhovan+php@hovan.org Operating system: FreeBSD 3.3 PHP version: 4.0.4 PHP Bug Type: *Install and Config Bug description: Core dump while loading DSO into apache I had a crasher when installing php-4.0.4 on FreeBSD 3.3 into apache 1.3.9. The problem was in the file php-4.0.4/ext/standard/crypt.c at line 109. I got a SIGFPE and a core dump when launching apache. The original line read as follows: srand48((unsigned int) time(0) * getpid() * (php_combined_lcg() * 10000.0)); my quick ugly hack was to add parenthesis to cast the whole thing to an int. It isn't the right solution but it is a step in the right direction (for me at least)... srand48((unsigned int) (time(0) * getpid() * (php_combined_lcg() * 10000.0))); -- Edit Bug report at: http://bugs.php.net/?id=8648&edit=1

« previous php.dev (#43754) next »