Bug #33128

Avoid string concatenations

Added by Steffen Gebert about 10 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Should have
Category:
-
Start date:
2012-01-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:

Description

Avoid

debug("Value " . $foo . " for type " . $type . " was " . $largerOrHigher . " than expected (" . $errorCode . ")");

as string concatenations are expensive and will be executed, although debug() method will not log anything.

Instead use

debug("Value %s for type %s was %s than expected (%)", $foo, $type, $largerOrHigher, $errorCode);

#1

Updated by Ingo Renner about 10 years ago

  • Status changed from New to Accepted
  • Assignee set to Ingo Renner
#2

Updated by Steffen Müller over 9 years ago

  • Status changed from Accepted to Resolved
  • Assignee changed from Ingo Renner to Steffen Müller

Also available in: Atom PDF