From: foobar Date: Sun, 21 Oct 2001 03:01:17 +0000 (+0000) Subject: Fixed bugs: #13251, #9827, #11363 X-Git-Tag: POST_PARAMETER_PARSING_API~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5db38caeced6df0bbbad12b926765b41d3396e23;p=php Fixed bugs: #13251, #9827, #11363 --- diff --git a/NEWS b/NEWS index f2a23cb1d2..7a6ab6a639 100644 --- a/NEWS +++ b/NEWS @@ -48,6 +48,7 @@ PHP 4.0 NEWS - Improved support for autoconf-2.50+/libtool 1.4b+. (Jan Kneschke, Sascha) ?? ??? 200?, Version 4.1.0 +- Fixed a crash bug within Cobalt systems. Patch by tomc@tripac.com. (Jani) - Introduced extension version numbers (Stig) - Added version_compare() function (Stig) - Fixed pg_last_notice() (could cause random crashes in PostgreSQL applications, diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index 3485cdac92..91f3168f47 100644 --- a/ext/standard/crypt.c +++ b/ext/standard/crypt.c @@ -106,7 +106,7 @@ PHP_MINIT_FUNCTION(crypt) PHP_RINIT_FUNCTION(crypt) { if(!php_crypt_rand_seeded) { - php_srand(time(0) * getpid() * (php_combined_lcg(TSRMLS_C) * 10000.0) TSRMLS_CC); + php_srand(time(0) * getpid() * (unsigned long) (php_combined_lcg(TSRMLS_C) * 10000.0) TSRMLS_CC); php_crypt_rand_seeded=1; } return SUCCESS;