Issue Bug Closed

#39085fetchTask: Missing validation of SQL result

Julian Hofmann 07/19/12, 13:54 updated 10/24/17, 20:20

Description

The method fetchTask trys to fetch any tasks from table tx_scheduler_task by using exec_SELECT_queryArray (-> exec_SELECTquery -> mysql_query). The result is a resource on success, or FALSE on error. In the following the result is always expected as resource – the case of an error is not handled.
E.g. in case of an damaged table tx_scheduler_task the scheduler is trying to handle FALSE as resource and throws many exceptions.

In my opinion there should be a validation of the result and a locking in case of erros.

Reviews 4