TYPO3 Forger
  • Dashboard
  • Get involved
  • Reviews
    Overview Ready for review Work in progress Needs action Needs review Needs verification Needs rebase Negative votes Reviewed and verified Ready to merge
  • Issues
    Stale issues Possible duplicates By category By month
  • Sprints
    Overview Initiatives TYPO3 Core Review board
  • Tools
    Backports ReST helper
  • Help
  • Search
  • Login
Esc

Words find the open ones, a number the issue and the change with it.

  1. Issues
  2. #54265
Issue Task Closed

#54265Use (int) instead of intval() or (integer)

Jo Hasenau 12/07/13, 15:33 updated 10/23/17, 21:46

Open in Forge Comment in Forge

Description

Description

When testing for the identity of integers using the intval() function has worse performance than a type cast with (int). (3-5x)

Replace all ~1600 calls to intval() with a type cast.

Reviews 1

  • main 26740[TASK] Use (int) instead of intval() or (integer) Resolves this issue Merged Jo Hasenau CR +2 V +2 → 6.2 performance Nightmare +1695 −1665 02/12/14, 12:04

Related issues 4

  • Task #54085Replace all strcmp() calls with === Related to Closed Performance v6.2 Markus Klein 11/29/13, 15:49
  • Bug #55753pagetype is not respected in pagecache Related to Closed Caching v6.2 Philipp Wrann 02/07/14, 10:08
  • Bug #61699Workspace Preview not working with lockSSL=3 Related to Closed Miscellaneous v6.2 Oliver Hader 09/18/14, 10:06
  • Bug #55706Different behavior of levelmedia in TYPO3 6.2 Precedes Closed Content Rendering v6.2 Björn Jacob 02/05/14, 20:11
Parent task
#55078 Optimize PHP code performance in TYPO3 methods
Assigned to
Jo Hasenau
Author
Jo Hasenau
Priority
Should have
Category
Performance
Target version
6.2.0
TYPO3 version
6.2
PHP version
5.4
© 2026 TYPO3 GmbH.
  • API
  • Privacy Policy
  • Legal Notice
  • Feedback