Date: 09/11/01
- Next message: Joey Smith: "Re: [PHP-DEV] Woah"
- Previous message: Alex Waugh: "Re: [PHP-DEV] RISC OS port"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: tomc <email protected>
Operating system: Linux / Cobalt Mips
PHP version: 4.0.6
PHP Bug Type: *Compile Issues
Bug description: Invalid calculation in argument to php_srand
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 bug report at: http://bugs.php.net/?id=13251&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Joey Smith: "Re: [PHP-DEV] Woah"
- Previous message: Alex Waugh: "Re: [PHP-DEV] RISC OS port"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

