Actions
Bug #19306
closedReturn value of debug_check_recordset is not used
Status:
Closed
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2008-09-09
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Within class.t3lib_db.php the method debug_check_recordset is used sometimes to check if a variable is a valid mysql resultset. This is done to avoid php warning messages.
Unfortunately the return value of this metod is not used...
The Method should be the statement of an if condition to use the return value of the validation.
If your TYPO3 installation is configured to display PHP Warnings, you get a lot message because of this failed validation.
My test system where I encounter this problem:
- TYPO3 Version 4.2.1
- Apache 2.0.59
- PHP 5.2.5
- MySQL 4.1.21
The file attached is from an TYPO3 Version as described above with this Issue fixed.
(issue imported from #M9316)
Files
Actions