|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-11 06:54 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 07:00:01 2025 UTC |
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)));