Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To control whether PHP uses the old XMLSERVICE in library ZENDPHP7 (ZENDPHP74 (or ZENDPHP7 for versions 9.1.x, 2018.x - 2019.x or ZENDSVR6 for versions 6 - 8.5.x), or the new XMLSERVICE in library XMLSERVICE, you need to edit this file (make a back up before changing this file!):

Versions

...

2020.

...

x, 2021.x and higher

...

/usr/local/zendphp74/share/ToolkitApi/toolkit.ini

OR

/usr/local/zendphp74/var/libraries/PHP_Toolkit_for_IBMI_i/default/library/toolkit.ini

Info
iconfalse

Note:  Please read the following article to understand why the location may be one or the other, and make sure you are set up correctly to use the newer location:

PHP Toolkit remains at 1.5.0 even though the default version is newer

Near the top of the file, in the [system] section, you will see these lines:

; set library where XTOOLKIT lives, most likely XMLSERVICE (testing) or ZENDPHP74 (production)
XMLServiceLib = 'ZENDPHP74' ; production
;XMLServiceLib = 'XMLSERVICE' ; for testing new XMLSERVICE packages

In this file, a semicolon at the start of a line marks it as a comment. So, in the example above, the XMLServiceLib is set to ZENDPHP74. We could change it to XMLSERVICE, by putting a semicolon in front of that line, and removing the semicolon from the next line, like this:

; set library where XTOOLKIT lives, most likely XMLSERVICE (testing) or ZENDPHP74 (production)
;XMLServiceLib = 'ZENDPHP74' ; production
XMLServiceLib = 'XMLSERVICE' ; for testing new XMLSERVICE packages

Save the file to make the change.  This change takes effect immediately, although you may need to clear the OPcache.  You can also change it back to ZENDPHP74 by simply reversing the change, if the newer version of XMLSERVICE shows some undesirable behavior, or just to compare the results using the different versions.  The expected behavior is for both versions to be functionally the same when running existing PHP code.

Versions 9.1.x, 2018.x and 2019.x

/usr/local/zendphp7/share/ToolkitApi/toolkit.ini

OR

/usr/local/zendphp7/var/libraries/PHP_Toolkit_for_IBMI_i/default/library/toolkit.ini

...

/usr/local/zendsvr6/share/ToolkitApi/toolkit.ini

OR

/usr/local/zendsvr6/var/libraries/PHP_Toolkit_for_IBMI_i/default/library/toolkit.ini

...