@@ -1126,10 +1126,10 @@ static function getLocalBackEndVersion($library)
11261126 }
11271127
11281128 /**
1129- * exec could be 'pase', 'pasecmd', 'system,' 'rexx', or 'cmd'
1129+ * CLCommand
11301130 *
1131- * @param $command can be a string or an array of multiple commands
1132- * @param string $exec
1131+ * @param array $command string will be turned into an array
1132+ * @param string $exec could be 'pase', 'pasecmd', 'system,' 'rexx', or 'cmd'
11331133 * @return array|bool
11341134 */
11351135 public function CLCommand ($ command , $ exec = '' )
@@ -1291,6 +1291,8 @@ public function qshellCommand($command)
12911291 return false ;
12921292 break ;
12931293 }
1294+
1295+ return true ;
12941296 }
12951297
12961298 /**
@@ -1312,7 +1314,7 @@ public function ClCommandWithOutput($command)
13121314 * slightly slower than regular cmd but faster than rexx
13131315 * (Actually it's faster than cmd in recent tests. It depends, perhaps.)
13141316 *
1315- * @param $command can be a string or an array.
1317+ * @param string $command can be a string or an array.
13161318 * @return array|bool
13171319 */
13181320 public function ClCommandWithCpf ($ command )
@@ -2012,6 +2014,7 @@ public function verify_CPFError($retPgmArr, $functionErrMsg)
20122014 }
20132015
20142016 /**
2017+ * err_bytes_avail is the official, reliable way to check for an error.
20152018 *
20162019 * @todo should this be using $this->cpfErr
20172020 *
@@ -2020,16 +2023,16 @@ public function verify_CPFError($retPgmArr, $functionErrMsg)
20202023 */
20212024 public function ParseErrorParameter (array $ Error )
20222025 {
2026+ $ CPFErr = false ;
20232027 if (!is_array ($ Error )) {
20242028 return false ;
20252029 }
20262030
20272031 // If there's an error structure and some error info was returned.
2028- // (err_bytes_avail is the official, reliable way to check for an error.)
20292032 if (isset ($ Error ['exceptId ' ]) && ($ Error ['err_bytes_avail ' ] > 0 )) {
20302033 $ CPFErr = $ Error ['exceptId ' ];
2031- /*Add here array parse if need */
20322034 }
2035+
20332036 return $ CPFErr ;
20342037 }
20352038
@@ -2345,7 +2348,7 @@ function changeCurrentUser($user, $password)
23452348 $ params [] = $ this ->addParameterInt32 ('both ' , '2. Size of error DS. Use 0 to force errors to bubble up to the job ' , 'errbytes ' , '0 ' );
23462349
23472350 // now call the "release handle" API!
2348- $ retPgmArr = $ this ->PgmCall ($ apiPgm , $ apiLib , $ params );
2351+ $ this ->PgmCall ($ apiPgm , $ apiLib , $ params );
23492352
23502353 // any errors?
23512354 if ($ this ->getErrorMsg () || $ this ->getErrorCode ()) {
0 commit comments