original_string: protected function setEngine(SessionHandlerInterface $handler)
      {
          if (!headers_sent() && session_status() !== \PHP_SESSION_ACTIVE) {
              session_set_save_handler($handler, false);
          }
  
          return $this->_engine = $handler;
      }
code: protected function setEngine(SessionHandlerInterface $handler)
      {
          if (!headers_sent() && session_status() !== \PHP_SESSION_ACTIVE) {
              session_set_save_handler($handler, false);
          }
  
          return $this->_engine = $handler;
      }
code_tokens: protected function setEngine ( SessionHandlerInterface $ handler ) { if ( ! headers_sent ( ) && session_status ( ) !== \ PHP_SESSION_ACTIVE ) { session_set_save_handler ( $ handler , false ) ; } return $ this -> _engine = $ handler ; }
docstring: Set the engine property and update the session handler in PHP.
  
  @param \SessionHandlerInterface $handler The handler to set
  @return \SessionHandlerInterface
docstring_tokens: Set the engine property and update the session handler in PHP .