src/tagadvance/gilligan/session/MySQLSessionHandler.php
private function triggerError($message) {
        $pdo = $this->pdoSupplier->getPDO();
        $mode = $pdo->getAttribute(\PDO::ATTR_ERRMODE);
        switch ($mode) {
            case \PDO::ERRMODE_WARNING:
                trigger_error($message, E_USER_ERROR);
                break;
            case \PDO::ERRMODE_EXCEPTION:
                throw new \RuntimeException($message);
                break;
            case \PDO::ERRMODE_SILENT:
            default:
                break;
        }
    }
private function triggerError($message) {
        $pdo = $this->pdoSupplier->getPDO();
        $mode = $pdo->getAttribute(\PDO::ATTR_ERRMODE);
        switch ($mode) {
            case \PDO::ERRMODE_WARNING:
                trigger_error($message, E_USER_ERROR);
                break;
            case \PDO::ERRMODE_EXCEPTION:
                throw new \RuntimeException($message);
                break;
            case \PDO::ERRMODE_SILENT:
            default:
                break;
        }
    }
private function triggerError ( $ message ) { $ pdo = $ this -> pdoSupplier -> getPDO ( ) ; $ mode = $ pdo -> getAttribute ( \ PDO :: ATTR_ERRMODE ) ; switch ( $ mode ) { case \ PDO :: ERRMODE_WARNING : trigger_error ( $ message , E_USER_ERROR ) ; break ; case \ PDO :: ERRMODE_EXCEPTION : throw new \ RuntimeException ( $ message ) ; break ; case \ PDO :: ERRMODE_SILENT : default : break ; } }
Honor the PDO ATTR_ERRMODE.
Honor the PDO ATTR_ERRMODE .