[TYPO3-core] RFC: #9318: Enhance and fix tslib_eidtools
Ingo Renner
ingo at typo3.org
Fri Sep 12 22:45:51 CEST 2008
Dmitry Dulepov [typo3] wrote:
> function connectDB() {
> if ($this->sql_pconnect(TYPO3_db_host, TYPO3_db_username,
> TYPO3_db_password)) {
> if (!TYPO3_db) {
> die('No database selected');
> exit;
> } elseif (!$this->sql_select_db(TYPO3_db)) {
> die('Cannot connect to the current database, "'.TYPO3_db.'"');
> exit;
> }
> } else {
> die('The current username, password or host was not accepted
> when the connection to the database was attempted to be established!');
> exit;
> }
> }
could we please get rid of all those die()s?! Use exceptions instead...
Ingo
--
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2
More information about the TYPO3-team-core
mailing list