PHP補丁[LAMP]
Notice , the argument of your configuring the PHP! They are “/usr/src/php-5.3.10/ext [extend]” here! such as:libxml!
shell> ls
bcmath libxml … and other modules list
————————————————————————————————
If your programmer need the bcadd() function , what shoud we do?
http-error:PHP Fatal error: Call to undefined function bcadd() in /www/test.php on line 5
It`s easy! add the php patch!
shell> cd /usr/src/php-5.3.10/ext/bcmath shell> ls …… ///there are no configure file shell> /usr/local/bin/phpize //the configure file will be builded!If you reboot your OS, they will disappear again! shell> ./configure --enable-bcmath --with-php-config=/usr/local/bin/php-config shell> make shell> make install Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20090626/ ------------------------------> shell> ls /usr/local/lib/php/extensions/no-debug-non-zts-20090626/ bcmath.o
——————————> /usr/local/lib/php.ini
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626/" //the path of patch! extension="bcmath.so"
——————————>
restart your apache!
—————————–> /www/test.php
<?php $a = `1.234`; $b = `5`; echo bcadd($a, $b) . "<br>"; // 6 echo bcadd($a, $b, 4); // 6.2340 ?>
PS: 另外,如果這樣擴充套件模組失敗的話,當然還可以重新編譯一次PHP唄!將新編譯好的,做一個軟鏈唄!
相關文章
- Ubuntu釋出PHP重要補丁修復多個PHP漏洞UbuntuPHP
- oracle 補丁Oracle
- 12. Oracle版本、補丁及升級——12.2. 補丁及補丁集Oracle
- 【補丁】Oracle補丁的知識及術語Oracle
- LAMP配置 and PHP helpLAMPPHP
- Oracle補丁術語介紹 PSU CPU補丁Oracle
- Oracle補丁集的補丁號Patch ID/Number速查Oracle
- 怎麼樣安裝AIX 補丁或者補丁集AI
- Oracle的補丁Oracle
- 軟體補丁
- php-LAMP試題PHPLAMP
- php環境搭建---LAMPPHPLAMP
- Oracle RAC更新補丁Oracle
- Oracle 安裝補丁Oracle
- 微軟重大補丁(轉)微軟
- Centos下搭建LAMP+PHPCentOSLAMPPHP
- c#釋出補丁C#
- Oracle補丁介紹一Oracle
- Pycharn破解補丁啟用
- oracle最新補丁查詢Oracle
- oracle打補丁回顧Oracle
- Oracle的OPatch補丁更新Oracle
- 資料庫補丁索引資料庫索引
- Oracle補丁集查詢Oracle
- Oracle介質補丁號Oracle
- oracle 補丁號查詢Oracle
- EBS opatch 補丁應用
- vm server RAC--補丁Server
- 檔案補丁製作
- Oracle EBS中打補丁Oracle
- 到底打還是不打補丁:安裝第三方補丁(轉)
- 編譯LAMP環境之PHP編譯LAMPPHP
- nginx+LAMP(apache+php+mysql)NginxLAMPApachePHPMySql
- [LAMP]安裝PHP5/7LAMPPHP
- Oracle PSU (Patch Set Update)- 10g補丁列表及如何檢視補丁Oracle
- Linux檔案打補丁Linux
- weblogic 12 補丁安裝Web
- Weblogic 補丁升級慢Web