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

Re: [cobalt-users] PHP4 Raq2 as DSO



> I had PHP4 working on one of our raq2s before as a DSO. Now I was trying to
> install a newer version to a different raq2, and it's not working.  I've
> done everything I know how, I think I properly configured it as a dso, HTTPD
> starts, but I can't load any php page.  Here's the ONLY error I get in the
> httpd error log.
> [Thu Aug 23 19:22:53 2001] [notice] Apache/1.3.3 Cobalt (Unix)  (Red
> Hat/Linux) PHP/4.0.6 configured -- resuming normal ope$
> [Thu Aug 23 19:23:12 2001] [notice] httpd: child pid 20170 exit signal
> Floating point exception (8)

Hey Greg,

This is a bug with PHP for MIPS(Raq1,Raq2 and Qube2). See
http://bugs.php.net bug ID 9827.

I had to change ext/standard/crypt.c at line 113.

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

to

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


HTH