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

From: Date: Thu, 11 Jan 2001 11:54:24 +0000
Subject: PHP 4.0 Bug #8648 Updated: Core dump while loading DSO into apache
Groups: php.dev 
Request: Send a blank email to php-dev+get-43769@lists.php.net to get a copy of this message
ID: 8648 Updated by: sniper Reported By: mhovan+php@hovan.org Old-Status: Open Status: Closed Bug Type: *Install and Config Assigned To: Comments: This is fixed in CVS already. Grab a snapshot from http://snaps.php.net/ --Jani Previous Comments: --------------------------------------------------------------------------- [2001-01-10 22:53:00] mhovan+php@hovan.org 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))); --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8648

« previous php.dev (#43769) next »