-> This caused errors, when more than one unknown argument was given (as it is 'wrong' PHP code for this type of action)
Example:
http://sandbox.onlinephpfunctions.com/code/
370c6dcc3bdc536819d52459ffd0343e699f77b2
$this->_joblog = TRUE;
}
else {
- while (list($short, $long) = each($this->_additional_arguments)) {
+ foreach($this->_additional_arguments as $short => $long) {
if ($arg == '-' . $short || $arg == '--' . $long) {
$property = '_' . $long;
$this->$property = $value;