ID: 13251 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Reproducible crash Operating System: Linux / Cobalt Mips PHP Version: 4.0.6 New Comment:
Patch committed. Thanks! Previous Comments: ------------------------------------------------------------------------ [2001-10-02 10:49:02] [EMAIL PROTECTED] updated summary. ------------------------------------------------------------------------ [2001-09-11 15:01:53] [EMAIL PROTECTED] At line 113 in ext/standard/crypt.c a calculation is made for the argument to php_srand() that creates an invalid result with gcc 2.7.2 on a Cobalt Mips system. httpd exits with a floating point exception when PHP is invoked. Changed php_srand(time(0) * getpid() * (php_combined_lcg() * 10000.0)); to php_srand(time(0) * getpid() * (unsigned long) (php_combined_lcg() * 10000.0)); ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13251&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]