XMLreader by PHP-CLI

General discussion on Zend Server for IBM System i

XMLreader by PHP-CLI

Postby seba8253 on Tue Jun 13, 2017 10:33 am

I have an IBM i V7.1 with Zend Server for IBM i 6.1.0.

If I use the XMLReader class via web all works fine, but if I try to call the same script by PHP-CLI I receive this error:

Fatal error: Class 'XMLReader' not found

it seems that PHP-CLI environment doesn't load xmlreader module/extension.

this is my script:

<?php
$z = new XMLReader();
var_dump($z);
?>

I call it in this way:

CALL PGM(QP2SHELL)
PARM('/usr/local/zendsvr6/bin/php-cli'
'/mypath/myscript.php')

thanks in advance.
Sebastiano
seba8253
 
Posts: 1
Joined: Thu Dec 12, 2013 11:36 am

Return to Zend Server for IBM i

Who is online

Users browsing this forum: No registered users and 1 guest