[TYPO3-core] showpic.php bug

Bernhard Kraft kraftb at kraftb.at
Tue Sep 6 11:58:48 CEST 2005


Hallo you,


Recently I discovered a bug in showpic.php. There is a call to TYPO3_DB->sql_pconnect(...) but then there is no
database selected.

Normally you wont notice this error if you havent turned debug messages on in class.t3lib_db.php ... But when you
turn this on it also does not happen all the time :) I guess this is because of the persistent database connection.

At least if you enable DB debugging and then open a few Click-2-Enlarge popups you will notice that there are debug/error
messages sometimes.

This is no serious bug as the only result is that image-sizes are not cached ...


See the attaced diff for the fix and tell me if I can apply it.



greets,
Bernahrd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01_showpic_selectDB_patch.diff
Type: text/x-patch
Size: 883 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20050906/17fb7473/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20050906/17fb7473/attachment.pgp 


More information about the TYPO3-team-core mailing list