Log in

View Full Version : undefined stock function


sabret00the
11-18-2005, 09:51 AM
could someone help me explain this please?

https://vborg.vbsupport.ru/showpost.php?p=824353&postcount=27

to my knowledge all stock functions should work, they work for me at least.

Marco van Herwaarden
11-18-2005, 03:58 PM
Since PHP 4.0.4, libbcmath is bundled with PHP. You don't need any external libraries for this extension.

* Marco van Herwaarden say: Documentation is your friend, use it.

sabret00the
11-18-2005, 05:35 PM
but that's just my point, i wasn't using any external libraries. this is a vB interaction problem

nevermind i see the thing with it now, nice one marco.

Marco van Herwaarden
11-18-2005, 07:05 PM
For those that don't see it yet: "Since PHP 4.0.4, libbcmath is bundled with PHP." also mean that it wasn't bundled by default for older PHP versions.

sabret00the
11-18-2005, 07:11 PM
For those that don't see it yet: "Since PHP 4.0.4, libbcmath is bundled with PHP." also mean that it wasn't bundled by default for older PHP versions.

hmmmm, funnily enough both users are running php5 and the script works when run standalone it's only when run via vBulletin that their was an issue. however i'm checking on this. i really hope it's just a server configuration issue.

thanks again marco. :)

Marco van Herwaarden
11-18-2005, 07:14 PM
Ok, the next sentence in the same page of the documentation:
These functions are only available if PHP was configured with --enable-bcmath. In PHP 3, these functions are only available if PHP was not configured with --disable-bcmath. On Windows these functions are always active.

sabret00the
11-18-2005, 07:16 PM
Ok, the next sentence in the same page of the documentation:

lol, you're a legend.