Supported PHP extensions and php.ini entries
If you want to enable a non-core extension, you must add the appropriate entry to the php.ini configuration file.
The supported extensions are supplied with the CICS® TS Feature Pack for Dynamic Scripting V2.0.
They are made available to the PHP engine as part of the product configuration,
when you update the JVMPROFILE to add a LIBPATH_SUFFIX statement.
For more information about the configuration procedure, see Configuring the z/OS component. The core PHP extensions
(ctype, date, pcre, posix, and standard) are supported and do not
need php.ini statements. Non-core extensions
can be turned on or off in the php.ini file.
The php.ini statements that are required to turn
on the non-core extensions are listed in Table 1.
Required php.ini entries
To enable a non-core extension, you must add the appropriate entry to the php.ini file. The entry is in the form of anextension= statement. In a few cases, more than
one statement is required to enable a function.
| Functional area | Required php.ini entry |
|---|---|
| Alternative PHP Cache Functions | extension=com.ibm.p8.engine.library.cache.APCCache |
| Calendar Functions | extension=php_calendar |
| CURL Client URL Library Functions | extension=php_curl |
| Exif Functions | extension=php_exif |
| Filter Functions | extension=php_filter |
| Hash Functions | extension=php_hash |
| Image Functions | extension=php_gd |
| JSON Functions | extension=php_json |
| Mcrypt Encryption Functions | extension=com.ibm.p8.library.mcrypt.McryptLibrary |
| Mimetype Functions | extension=php_mime_magic |
| Multibyte String Functions | extension=com.ibm.p8.library.standard.MbStringLibrary |
| SNMP Functions | extension=php_snmp |
| SimpleXML Functions | Note: Both of these statements
are required, in the order given.
|
| XML Parser Functions | extension=php_xml |
| php_zlib | |