[TYPO3-core] RFC #11599: Bug: TYPO3 dies without an error message when the mysql-module for php is not loaded.
Michael Knabe
t3 at aafhh.de
Mon Aug 31 21:21:06 CEST 2009
This is an SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=11599
Branch: Trunk
Problem:
t3lib_db::sql_pconnect causes a "Fatal error: Call to undefined function
mysql_pconnect() in
/data/home/michaelk/TYPO3/typo3_src-trunk/t3lib/class.t3lib_db.php on
line 949" when PHP doesn't support MySQL.
However, this error message is neither shown nor logged, as error
messages are disabled (using the @-sign).
Solution:
Check if the mysql-extension is loaded before connecting the database
and exit with a proper error message.
Notes:
0011599_v2.diff is obviously the better one.
Michael
--
Michael Knabe
IRC is just multiplayer notepad.
More information about the TYPO3-team-core
mailing list