CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #34041

ValidateAuthCode wrongly tries to free result memory on a non ressource

Added by Sebastian Müller over 1 year ago. Updated about 1 year ago.

Status:Resolved Start date:2012-02-17
Priority:Must have Due date:
Assignee:Reinhard Führicht % Done:

100%

Category:PreProcessor
Target version:v1.3
Votes: 0

Description

Hey guys,

Tx_Formhandler_PreProcessor_ValidateAuthCode uses $GLOBALS['TYPO3_DB']->sql_free_result($res).

Thats OK if the MYSQL statement returns a ressource. MYSQL-UPDATE won't do that, therefore the warning "Warning: mysql_free_result() expects parameter 1 to be resource, boolean given" is thrown.

Please remove $GLOBALS['TYPO3_DB']->sql_free_result($res) in line 73.

Associated revisions

Revision 58089
Added by Reinhard Führicht over 1 year ago

ValidateAuthCode wrongly tries to free result memory on a non ressource (fixes #34041)

Revision 58089
Added by Reinhard Führicht over 1 year ago

ValidateAuthCode wrongly tries to free result memory on a non ressource (fixes #34041)

History

Updated by Reinhard Führicht over 1 year ago

  • Category set to PreProcessor
  • Status changed from New to Accepted
  • Assignee set to Reinhard Führicht
  • Target version set to 1610

Updated by Reinhard Führicht over 1 year ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Fixed in trunk. Thanks for the hint!

Updated by Reinhard Führicht about 1 year ago

  • Target version changed from 1610 to v1.3

Also available in: Atom PDF