diff options
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 46 | 
1 files changed, 0 insertions, 46 deletions
| diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 9d5770069d..158bf1cbc0 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -5327,52 +5327,6 @@ function phpbb_to_numeric($input)  }  /** -* Convert either 3.0 dbms or 3.1 db driver class name to 3.1 db driver class name. -* -* If $dbms is a valid 3.1 db driver class name, returns it unchanged. -* Otherwise prepends phpbb\db\driver\ to the dbms to convert a 3.0 dbms -* to 3.1 db driver class name. -* -* @param string $dbms dbms parameter -* @return db driver class -*/ -function phpbb_convert_30_dbms_to_31($dbms) -{ -	// Note: this check is done first because mysqli extension -	// supplies a mysqli class, and class_exists($dbms) would return -	// true for mysqli class. -	// However, per the docblock any valid 3.1 driver name should be -	// recognized by this function, and have priority over 3.0 dbms. -	if (strpos($dbms, 'phpbb\db\driver') === false && class_exists('phpbb\db\driver\\' . $dbms)) -	{ -		return 'phpbb\db\driver\\' . $dbms; -	} - -	if (class_exists($dbms)) -	{ -		// Additionally we could check that $dbms extends phpbb\db\driver\driver. -		// http://php.net/manual/en/class.reflectionclass.php -		// Beware of possible performance issues: -		// http://stackoverflow.com/questions/294582/php-5-reflection-api-performance -		// We could check for interface implementation in all paths or -		// only when we do not prepend phpbb\db\driver\. - -		/* -		$reflection = new \ReflectionClass($dbms); - -		if ($reflection->isSubclassOf('phpbb\db\driver\driver')) -		{ -			return $dbms; -		} -		*/ - -		return $dbms; -	} - -	throw new \RuntimeException("You have specified an invalid dbms driver: $dbms"); -} - -/**  * Get the board contact details (e.g. for emails)  *  * @param \phpbb\config\config	$config | 
