ScotlandPHP 2019


A partir de PHP 5.3.15 / 5.4.5, esta extensión requiere php_com_dotnet.dll para habilitarla dentro de php.ini para poder usar estas funciones. Las versiones anteriores de PHP habilitaban estas extensiones de manera predeterminada.

Usted tienen la responsabilidada de instalar el soporte para los diversos objetos COM que tenga intención de usar (como MS Word); no incluimos ni podemos incluir todos estos con PHP.

add a note add a note

User Contributed Notes 2 notes

robert dot johnson at icap dot com
6 years ago
From PHP 5.4.5, COM and DOTNET is no longer built into the php have to add COM support in php.ini:


Otherwise you will see this in your error log:
Fatal error:  Class \'COM\' not found

The extension is included with php 5.4.5 for Windows.
Andriy Bazanov
6 years ago
As of 5.3.15 (if you are still on 5.3 branch) you have to add extension=php_com_dotnet.dll line into your php.ini to have COM, DOTNET, VARIANT and similar classes available and working.

From PHP Change log:
        Fixed bug #62146 com_dotnet cannot be built shared

Because of this, the official PHP builds for Windows are now built with "--enable-com-dotnet=shared" option, which means no COM/DOTNET support by default.

Some of my projects that I currently maintain use adodb library which uses VARIANT class and fails to work without it.
To Top