使用运行IIS且安装了PHP 5.3.28的Windows Server 2008 R2。
每次我尝试运行我的应用程序时都会遇到PHP致命错误:Class' COM'但是没有找到我已将条目添加到.ini文件中。
无法让任何想法发挥作用吗?
PHP信息:
System Windows NT CPLAS11 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
Build Date Dec 10 2013 22:04:40
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--disable-isapi" "--disable-nsapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared" "--with-enchant=shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--disable-static-analyze"
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File C:\Program Files (x86)\PHP\php.ini
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
PHP API 20090626
PHP Extension 20090626
Zend Extension 220090626
Zend Extension Build API220090626,NTS,VC9
PHP Extension Build API20090626,NTS,VC9
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
Registered PHP Streams php, file, glob, data, http, ftp, zip, compress.zlib, compress.bzip2, https, ftps, phar
Registered Stream Socket Transports tcp, udp, ssl, sslv3, sslv2, tls
Registered Stream Filters convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*, bzip2.*
答案 0 :(得分:0)
在COM
类的安装文档 - http://www.php.net/manual/en/com.installation.php中 - 它表示您使用的PHP版本必须在php.ini中启用php_com_dotnet.dll
。
确保你的php.ini
中有这样的条目[COM_DOT_NET]
extension=php_com_dotnet.dll