I am tring to use one of the timing scripts found on PHPBuilder. The bcsub call causes a Fatal error: Call to undefined function: bcsub() in ...

I am running PHP 4.0.6 on Redhat 7.1. As far as I can tell from all the docs, all version of PHP since 4.0.4 have the bc function built in by default. Does anybody have any ideas why I would be getting this error? Is there an alternative to using bcsub?

Thanks,

greg

    You have to compile php --with-bcmath

      Even with ver. 4.0.6? The docs seem to hint that you do not need to do that, but maybe I am misreading them. Ok, so here is another question.

      If I need to rebuild PHP, what is the easiest way to go about it. The reason I ask is because I am running on a hosted dedicated server that was initially set up for me (Redhat 7.1). There is currently an active website being served on the box so I would like to avoid causing any downtime. It does not look like the current install was built but rather the default binary install. The current install is running great ( besides bcmath functions not available ) so I would like to cary over the same options I have now with only adding the bcmath stuff. Any words of advice?

      Thanks

        Write a Reply...