summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--ext/standard/crypt.c2
2 files changed, 2 insertions, 1 deletions
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;