Uncaught Error: [] operator not supported is happend in 9.1

General discussion on Zend Server for IBM System i

Uncaught Error: [] operator not supported is happend in 9.1

Postby strysd on Wed Jul 26, 2017 6:41 am

Hello, I find the message while I run getsplf() of XML Toolkit.
I think line 224 in Db2supp.php would be changed as following.
I will feel happy if you have any thoughts.

Actually:
$Txt = '';


Expected:
$Txt = [];


Envrionment: Zend Server for IBM i 9.1

Message:
Uncaught Error: [] operator not supported for strings in /usr/local/zendphp7/var/libraries/PHP_Toolkit_for_IBMI_i/1.6.1/library/Db2supp.php:233
Stack trace:
#0 /usr/local/zendphp7/var/libraries/PHP_Toolkit_for_IBMI_i/1.6.1/library/ToolkitService.php(2081): db2supp->executeQuery(Resource id #4, 'SELECT ZSF255 F...')
#1 /usr/local/zendphp7/var/libraries/PHP_Toolkit_for_IBMI_i/1.6.1/library/iToolkitService.php(1047): ToolkitService->executeQuery('SELECT ZSF255 F...')
#2 /usr/local/zendphp7/var/libraries/PHP_Toolkit_for_IBMI_i/1.6.1/library/iToolkitService.php(1028): SpooledFiles->ReadSPLFData()
#3 /www/zendphp7/htdocs/mytest/spool.php(42): SpooledFiles->GetSPLF('ZSF255 ', '0001', '068419', 'YOSHIDA ', 'YOSHIDA ', 'ZSSPLTST')
#4 {main}
thrown in /usr/local/zendphp7/var/libraries/PHP_Toolkit_for_IBMI_i/1.6.1/library/Db2supp.php on line 233


getsplf_error.png
getsplf_error.png (41.25 KiB) Viewed 189 times


Thank You.
strysd
 
Posts: 37
Joined: Fri Jun 04, 2010 5:26 am
Location: Kawasaki, Japan

Return to Zend Server for IBM i

Who is online

Users browsing this forum: No registered users and 2 guests