[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Qube2, PHP4.0.6, Apache 1.3.20 question...
- Subject: Re: [cobalt-users] Qube2, PHP4.0.6, Apache 1.3.20 question...
- From: Jay Summers <jay@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu Jul 12 01:45:15 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> If those don't work, then I would start to assume that PHP didn't get
> installed correctly. Looking at your original post, it would seem that
> you've done everything correctly. But there is a bug with PHP and the Mipsel
> processor that I'm not sure you're aware of.
>
> http://list.cobalt.com/pipermail/cobalt-users/2001-April/041925.html
>
> I had to change ext/standard/crypt.c at line 113.
>
> php_srand(time(0) * getpid() * (php_combined_lcg() * 1.00000));
>
> to
>
> php_srand(time(0) * getpid() * (php_combined_lcg() * 1.0));
Doh! Sorry, I did that from memory and of course it was wrong. The change
should be:
php_srand(time(0) * getpid() * (php_combined_lcg() * 10000.0));
to
php_srand(time(0) * getpid() * (php_combined_lcg() * 1.0));
L8r,
j