Compiler construction PHP和外部库

Compiler construction PHP和外部库,compiler-construction,compiler-errors,php4,Compiler Construction,Compiler Errors,Php4,我正试图用bambalam编译一个php文件,该文件使用BCMATH库,该库不久前就内置在php中。编译文件时,函数bcpowmod在运行时出错。我手动下载了php_bcmath.dll并将其包含在编译中,但仍然得到一个错误。这次声明无法从内存加载dll。有没有人有这方面的经验?我完全不知所措。我也愿意接受其他编译器建议 C:\xampp\htdocs\proc>c:\Users\Mike\Desktop\bamcompile.exe -e:php_bcmath.dll test.php

我正试图用bambalam编译一个php文件,该文件使用BCMATH库,该库不久前就内置在php中。编译文件时,函数bcpowmod在运行时出错。我手动下载了php_bcmath.dll并将其包含在编译中,但仍然得到一个错误。这次声明无法从内存加载dll。有没有人有这方面的经验?我完全不知所措。我也愿意接受其他编译器建议

C:\xampp\htdocs\proc>c:\Users\Mike\Desktop\bamcompile.exe -e:php_bcmath.dll test.php test.exe

Bambalam PHP EXE Compiler/Embedder 1.21

Mainfile: test.php
Outfile: test.exe

Encoding and embedding test.php
Embedding php_bcmath.dll and adding it to extension loader

test.exe created successfully!

C:\xampp\htdocs\proc>test.exe

**Warning: dl_memory(): Unable to load dynamic library 'PHP_BCMATH.DLL' - The specified module could not be found.in bambalam_init.php on line 1**

Fatal error: Call to undefined function:  bcpowmod() in C:\xampp\htdocs\proc\Mat
h\BigInteger.php on line 1700

C:\xampp\htdocs\proc>

如注释中所述,函数bcpowmod在PHP5之前不可用。因此,必须使用可用的替换函数。

检查phpinfo,查看在PHPit中是否启用了BC MATH is…。在我的机器上使用本机PHP安装运行时,它工作正常。我知道bambalam附带了一个bcmath库…不知道为什么它会缺少一个函数…缺少这个函数的另一个机会是,您的PHP版本<5。请阅读:Bambalam使用<5。我使用了一个替换函数。非常感谢。