Skip to content

Commit e9cb731

Browse files
committed
Use stateless flag from toolkit.ini it is present to override value in
$_options array. Add to constructor by adding to the array in getOptionalParams.
1 parent 68e20a1 commit e9cb731

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ToolkitApi/ToolkitService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class ToolkitService
9696
'trace' => false, // whether to enable XMLSERVICE internal log
9797
'sbmjobCommand' => '', // optional complete override of SBMJOB command when new toolkit job is submitted
9898
'prestart' => false,
99-
'stateless' => false,
99+
'stateless' => false, // overriden by value in toolkit.ini if it is present (system section)
100100
'performance' => false, // whether to enable performance collection (not fully implemented)
101101
'idleTimeout' => '', // created for Compat. Wrapper (CW)
102102
'cdata' => true, // whether to ask XMLSERVICE to wrap its output in CDATA to protect reserved XML characters
@@ -225,7 +225,7 @@ protected function __construct($databaseNameOrResource, $userOrI5NamingFlag = '0
225225
}
226226

227227
// Optional params. Don't specify if not given in INI.
228-
$this->getOptionalParams('system', array('v5r4', 'ccsidBefore', 'ccsidAfter', 'useHex', 'paseCcsid', 'trace', 'dataStructureIntegrity', 'arrayIntegrity'));
228+
$this->getOptionalParams('system', array('stateless','v5r4', 'ccsidBefore', 'ccsidAfter', 'useHex', 'paseCcsid', 'trace', 'dataStructureIntegrity', 'arrayIntegrity'));
229229
$this->getOptionalParams('transport', array('httpTransportUrl', 'plugSize'));
230230

231231
// populate serviceParams with $transport, or get it from INI

ToolkitApi/toolkit.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dataStructureIntegrity = true
6060
; For backward compatibility with pre-1.4.0, set to false.
6161
arrayIntegrity = true
6262

63-
; CW only: stateless mode is default for i5_connect (though automatically overridden if private conns are used)
63+
; stateless mode is default for i5_connect (though automatically overridden if private conns are used)
6464
stateless = true
6565

6666
[transport]

0 commit comments

Comments
 (0)