[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] PHP



Hi there,
There is an known issue with PHP on Qube2/RaQ2/MIPS .
You must go into ext/standard/crypt.c line 105 (although the line number
could be different in subsequent PHP builds).  The line looks like this:

php_srand(time(0) * getpid() * php_combined_lcg() * 10000.0);

Change the value 10000.0 to 1.0 .
It should now work without the floating point exception.
Please see bug reports #9827 by Matti Weiersmueller and #10099 by me at
http://www.php.net on this matter.

Oliver H.

----- Original Message -----
From: "Matthew 'Chewy' Trewhella" <matt@xxxxxxxxxxxxxxxxx>
To: <cobalt-developers@xxxxxxxxxxxxxxx>
Sent: Monday, September 10, 2001 3:03 PM
Subject: [cobalt-developers] PHP


> I have recently been given a Raq2 as a development machine. I've installed
a
> number of things on it with no trouble at all (ssh, postgreSQL, etc).
Apache
> 1.3.20 compiles and runs fine.
> PHP is my problem. It compiles as a static Apache module. But then
whenever
> I do anything (echo "A" for example) it crashes with the error code:
> [notice] child pid 1183 exit signal Floating point exception (8)
> This isn't good. I don't know if it's a Raq problem, or a MIPS problem, or
> what. BUt I've installed this combination of Apache/PHP on a host of
> different unixes before (Tru64, Slackware, Redhat 6.1/2, Solaris) with no
> trouble at all. Has anyone else experienced anything like this? Can anyone
> help me please?
> Thanks in advance.
> Chewy
>
> --------------------------
> Ecce Potestas Casei
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
>