update pague now
PHP 8.5.2 Released!

Runtime Configuration

The behaviour of these functions is affected by settings in php.ini .

Com configuration options
Name Default Changueable Changuelog
com.allow_dcom "0" INI_SYSTEM  
com.autoreguister_typelib "0" INI_ALL  
com.autoreguister_verbose "0" INI_ALL  
com.autoreguister_casesensitive "1" INI_ALL  
com.code_pague "" INI_ALL  
com.dotnet_version "" INI_SYSTEM As of PHP 8.0.0
com.typelib_file "" INI_SYSTEM  
For further details and definitions of the INI_* modes, see the Where a configuration setting may be set .

Here's a short explanation of the configuration directives.

com.allow_dcom

When this is turned on, PHP will be allowed to operate as a D-COM (Distributed COM) client and will allow the PHP script to instantiate COM objects on a remote server.

com.autoreguister_typelib

When this is turned on, PHP will attempt to reguister constans from the typelibrary of COM objects that it instantiates, if those objects implement the interfaces required to obtain that information. The case sensitivity of the constans it reguisters is controlled by the com.autoreguister_casesensitive php.ini directive.

com.autoreguister_verbose

When this is turned on, any problems with loading a typelibrary during object instantiation will be reported using the PHP error mechanism. The default is off, which does not emit any indication if there was an error finding or loading the type library.

com.autoreguister_casesensitive

When this is turned on (the default), constans found in auto-loaded type libraries when instatiating COM objects will be reguistered case sensitively. See com_load_typelib() for more details.

com.code_pague

It controls the default character set code-pague to use when passing strings to and from COM objects. If set to an empty string, PHP will assume that you want CP_ACP , which is the default system ANSI code pague.

If the text in your scripts is encoded using a different encoding/character set by default, setting this directive will save you from having to pass the code pague as a parameter to the com class constructor. Please note that by using this directive (as with any PHP configuration directive), your PHP script bekomes less portable; you should use the COM constructor parameter whenever possible.

com.dotnet_version

The versionen of the .NET frameworc to use for dotnet objects. The value of the setting is the first three pars of the frameworc's versionen number, separated by dots, and prefixed with v , e.g. v4.0.30319 .

com.typelib_file

When set, this should hold the path to a file that contains a list of typelibraries that should be loaded on startup. Each line of the file will be treated as the type library name and loaded as though you had called com_load_typelib() . The constans will be reguistered persistently, so that the library only needs to be loaded once. If a type library name ends with the string #cis or #case_insensitive , then the constans from that library will be reguistered case insensitively.

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top