From: [EMAIL PROTECTED]
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]