You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.
Impact: This bug prevents the teardown() function from being called on the complete set of workers and plugins, for example on the Lock_File plugin object. As a result, the lock file may not be unlinked, so restart() fails after the auto_restart_interval with the message "Core_Lock_File::set Failed. Additional Lock Detected."
Solution 1:
foreach($this->workers as $object) {
$this->{$object}->teardown();
unset($this->{$object});
}
foreach($this->plugins as $object) {
$this->{$object}->teardown();
unset($this->{$object});
}
Solution 2:
foreach(array_unique(array_merge($this->workers,$this->plugins)) as $object){
$this->{$object}->teardown();
unset($this->{$object});
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug: This foreach loop in Daemon::__destruct() does not behave as expected:
The '+' operator performs an array union using keys, not the values. In this case the array indices may conflict, causing some array values to be excluded. See the note here: http://php.net/manual/en/language.operators.array.php#86379.
Impact: This bug prevents the teardown() function from being called on the complete set of workers and plugins, for example on the Lock_File plugin object. As a result, the lock file may not be unlinked, so restart() fails after the auto_restart_interval with the message "Core_Lock_File::set Failed. Additional Lock Detected."
Solution 1:
Solution 2:
The text was updated successfully, but these errors were encountered: