Sets the active flag.
Has no effect under PHP 5.4+ as status is detected automatically in isActive()
@internal
Boolean $flag:
\LogicException
public function setActive($flag) {
if (version_compare(phpversion(), '5.4.0', '>=')) {
throw new \LogicException('This method is disabled in PHP 5.4.0+');
}
$this->active = (bool) $flag;
}