{"id":23,"date":"2024-09-19T11:37:30","date_gmt":"2024-09-19T03:37:30","guid":{"rendered":"http:\/\/log.d9t3.com\/?p=23"},"modified":"2024-09-19T11:37:30","modified_gmt":"2024-09-19T03:37:30","slug":"%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3php-fatal-error-call-to-undefined-function-bcmul%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/log.d9t3.com\/?p=23","title":{"rendered":"\u5982\u4f55\u89e3\u51b3PHP FATAL ERROR: CALL TO UNDEFINED FUNCTION BCMUL\u95ee\u9898"},"content":{"rendered":"\n<p>\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u201c\u5982\u4f55\u89e3\u51b3PHP FATAL ERROR: CALL TO UNDEFINED FUNCTION BCMUL\u95ee\u9898\u201d\uff0c\u5728\u65e5\u5e38\u64cd\u4f5c\u4e2d\uff0c\u76f8\u4fe1\u5f88\u591a\u4eba\u5728\u5982\u4f55\u89e3\u51b3PHP FATAL ERROR: CALL TO UNDEFINED FUNCTION BCMUL\u95ee\u9898\u95ee\u9898\u4e0a\u5b58\u5728\u7591\u60d1\uff0c\u5c0f\u7f16\u67e5\u9605\u4e86\u5404\u5f0f\u8d44\u6599\uff0c\u6574\u7406\u51fa\u7b80\u5355\u597d\u7528\u7684\u64cd\u4f5c\u65b9\u6cd5\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u89e3\u7b54\u201d\u5982\u4f55\u89e3\u51b3PHP FATAL ERROR: CALL TO UNDEFINED FUNCTION BCMUL\u95ee\u9898\u201d\u7684\u7591\u60d1\u6709\u6240\u5e2e\u52a9\uff01\u63a5\u4e0b\u6765\uff0c\u8bf7\u8ddf\u7740\u5c0f\u7f16\u4e00\u8d77\u6765\u5b66\u4e60\u5427\uff01<\/p>\n\n\n\n<p>\u5728\u4e00\u53f0\u5904\u7406\u7f51\u7edc\u652f\u4ed8\u7684<a target=\"_blank\" href=\"https:\/\/www.yisu.com\/\" rel=\"noreferrer noopener\">\u670d\u52a1\u5668<\/a>\u8fc1\u79fb\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u4e0d\u80fd\u652f\u4ed8\u3002<\/p>\n\n\n\n<p><strong>PHP\u73af\u5883\uff1a<br><\/strong>PHP\u7248\u672c\u4e3a5.3.3<br>\u7cfb\u7edf\u4e3aRed Hat 4.1.2-54<br><br>\u67e5\u770bapache\u7684\u9519\u8bef\u65e5\u5fd7\uff0c\u53d1\u73b0\u662f\u52a0\u5bc6\u6587\u4ef6\u4e2d\u4e00\u4e2a\u51fd\u6570bcmul()\u62a5\u9519\uff1a<\/p>\n\n\n\n<p>\u590d\u5236\u4ee3\u7801&nbsp;\u4ee3\u7801\u5982\u4e0b:<\/p>\n\n\n\n<p>PHP Fatal error:&nbsp; Call to undefined function bcmul() in \/php_rsa.php on line xxx<\/p>\n\n\n\n<p><strong>\u89e3\u51b3\u529e\u6cd5\uff1a<br><\/strong>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4:<\/p>\n\n\n\n<p>\u590d\u5236\u4ee3\u7801&nbsp;\u4ee3\u7801\u5982\u4e0b:<\/p>\n\n\n\n<p>yum install php-bcmath<\/p>\n\n\n\n<p><br>\u5c31\u5b89\u88c5\u597d\u4e86\u3002<\/p>\n\n\n\n<p><strong>\u5982\u679c\u51fa\u73b0\u4e0b\u9762\u8fd9\u79cd\u60c5\u51b5\uff1a<\/strong><\/p>\n\n\n\n<p>\u590d\u5236\u4ee3\u7801&nbsp;\u4ee3\u7801\u5982\u4e0b:<\/p>\n\n\n\n<p>Loaded plugins: fastestmirror<br>Loading mirror speeds from cached hostfile<br>&nbsp;* base: mirrors.yun-idc.com<br>&nbsp;* extras: mirrors.yun-idc.com<br>&nbsp;* rpmforge: ftp.riken.jp<br>&nbsp;* updates: mirrors.yun-idc.com<br>Setting up Install Process<br>Resolving Dependencies<br>&#8211;&gt; Running transaction check<br>&#8212;&gt; Package php-bcmath.x86_64 0:5.1.6-40.el5_9 set to be updated<br>&#8211;&gt; Processing Dependency: php-common = 5.1.6-40.el5_9 for package: php-bcmath<br>&#8211;&gt; Running transaction check<br>&#8212;&gt; Package php-common.x86_64 0:5.1.6-40.el5_9 set to be updated<br>&#8211;&gt; Processing Conflict: php53-common conflicts php-common<br>&#8211;&gt; Finished Dependency Resolution<br>php53-common-5.3.3-13.el5_9.1.x86_64 from installed has depsolving problems<br>&nbsp;&nbsp;&#8211;&gt; php53-common conflicts with php-common<br>Error: php53-common conflicts with php-common<br>&nbsp;You could try using &#8211;skip-broken to work around the problem<br>&nbsp;You could try running: package-cleanup &#8211;problems<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;package-cleanup &#8211;dupes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rpm -Va &#8211;nofiles &#8211;nodigest<\/p>\n\n\n\n<p><br>\u5c31\u9700\u8981\u4f7f\u7528yum update \u4e4b\u540e\u518dyum install php53-bcmath\u5c31\u597d\u4e86<\/p>\n\n\n\n<p><br>\u987a\u4fbf\u4e86\u89e3\u4e86\u4e00\u4e0b\uff0cbcmath\u8fd9\u4e2a\u51fd\u6570\u662fPHP\u6570\u5b66\u6269\u5c55\u4e2d\u7684\u4e00\u4e2a\u3002\u53ef\u4ee5\u4f7f\u7528 bcscale() \u6765\u8bbe\u7f6e\u5168\u5c40\u9ed8\u8ba4\u7684\u5c0f\u6570\u4f4d\u6570\uff0c\u5177\u4f53\u7528\u6cd5\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>\u590d\u5236\u4ee3\u7801&nbsp;\u4ee3\u7801\u5982\u4e0b:<\/p>\n\n\n\n<p>string bcmul ( string $left_operand , string $right_operand [, int $scale ] )<\/p>\n\n\n\n<p><br>\u4f8b\u5b50\uff1a<\/p>\n\n\n\n<p>\u590d\u5236\u4ee3\u7801&nbsp;\u4ee3\u7801\u5982\u4e0b:<\/p>\n\n\n\n<p>&lt;?php<br>echo&nbsp;bcmul(&#8216;1.34747474747&#8242;,&nbsp;&#8217;35&#8217;,&nbsp;3);&nbsp;\/\/&nbsp;47.161<br>echo&nbsp;bcmul(&#8216;2&#8217;,&nbsp;&#8216;4&#8217;);&nbsp;\/\/&nbsp;8<br>?&gt;<\/p>\n\n\n\n<p>\u6b64\u51fd\u6570\u5728php.ini\u4e2d\u7684\u9009\u9879\uff1a<\/p>\n\n\n\n<p>\u590d\u5236\u4ee3\u7801&nbsp;\u4ee3\u7801\u5982\u4e0b:<\/p>\n\n\n\n<p>[bcmath]<br>; Number of decimal digits for all bcmath functions.<br>; http:\/\/www.php.net\/manual\/en\/bc.configuration.php#ini.bcmath.scale<br>bcmath.scale = 0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u201c\u5982\u4f55\u89e3\u51b3PHP FATAL ERROR: CALL TO UNDEFINED FUNCTIO<\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"https:\/\/log.d9t3.com\/?p=23\" class=\"link-btn theme-btn\"><span>Read More <\/span> <i class=\"fa fa-caret-right\"><\/i><\/a>\n\t\t\t<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/log.d9t3.com\/index.php?rest_route=\/wp\/v2\/posts\/23"}],"collection":[{"href":"https:\/\/log.d9t3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/log.d9t3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/log.d9t3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/log.d9t3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":1,"href":"https:\/\/log.d9t3.com\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":24,"href":"https:\/\/log.d9t3.com\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions\/24"}],"wp:attachment":[{"href":"https:\/\/log.d9t3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/log.d9t3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/log.d9t3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}