In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "how to solve the PHP FATAL ERROR: CALL TO UNDEFINED FUNCTION BCMUL problem". In the daily operation, I believe many people have doubts about how to solve the PHP FATAL ERROR: CALL TO UNDEFINED FUNCTION BCMUL problem. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to solve the PHP FATAL ERROR: CALL TO UNDEFINED FUNCTION BCMUL problem"! Next, please follow the editor to study!
When a server that processes online payments migrates, it is found that payments cannot be made.
PHP environment:
PHP version 5.3.3
The system is Red Hat 4.1.2-54
Check the error log of apache and find that it is a function bcmul () in the encrypted file that reports an error:
The copy code is as follows:
PHP Fatal error: Call to undefined function bcmul () in / php_rsa.php on line xxx
Solution:
Use the following command:
The copy code is as follows:
Yum install php-bcmath
It will be installed.
If the following occurs:
The copy code is as follows:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.yun-idc.com
* extras: mirrors.yun-idc.com
* rpmforge: ftp.riken.jp
* updates: mirrors.yun-idc.com
Setting up Install Process
Resolving Dependencies
-> Running transaction check
-> Package php-bcmath.x86_64 0RU 5.1.6-40.el5_9 set to be updated
-- > Processing Dependency: php-common = 5.1.6-40.el5_9 for package: php-bcmath
-> Running transaction check
-> Package php-common.x86_64 0RU 5.1.6-40.el5_9 set to be updated
-- > Processing Conflict: php53-common conflicts php-common
-> Finished Dependency Resolution
Php53-common-5.3.3-13.el5_9.1.x86_64 from installed has depsolving problems
-> php53-common conflicts with php-common
Error: php53-common conflicts with php-common
You could try using-skip-broken to work around the problem
You could try running: package-cleanup-- problems
Package-cleanup-dupes
Rpm-Va-nofiles-nodigest
You need to use yum update and then yum install php53-bcmath.
By the way, bcmath is one of the mathematical extensions of PHP. You can use bcscale () to set the global default number of decimal places as follows:
The copy code is as follows:
String bcmul (string $left_operand, string $right_operand [, int $scale])
Example:
The copy code is as follows:
Options for this function in php.ini:
The copy code is as follows:
[bcmath]
; Number of decimal digits for all bcmath functions.
; http://www.php.net/manual/en/bc.configuration.php#ini.bcmath.scale
Bcmath.scale = 0
At this point, the study on "how to solve the PHP FATAL ERROR: CALL TO UNDEFINED FUNCTION BCMUL problem" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.