[TYPO3-core] RFC: Bug 5941: exact reason why db connect failed is missing
Ernesto Baschny [cron IT]
ernst at cron-it.de
Mon Aug 6 12:26:05 CEST 2007
Martin Kutschker wrote: on 13.07.2007 22:57:
> This is a patch request:
>
> Branch: trunk, TYPO3_41
>
> Problem: the @ operator is used for mysql_connect. This hides the error,
> but the message is lost because mysql_error works only for an
> established connection.
>
> Solution: use the track_errors PHP setting to retrieve the error message.
Works as expected. I think we are safe to use ini_set / restore even in
a safe_mode environment, right?
So +1 from me, TRUNK + TYPO3_41
Cheers,
Ernesto
More information about the TYPO3-team-core
mailing list