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. #26660
Issue Bug Closed

#26660imagecopyresized has invalid function parameter

Benjamin Schulte 05/06/11, 10:13 updated 10/02/18, 12:20

Open in Forge Comment in Forge

Description

The class t3lib_stdgraphic provides the method imagecopyresized with a parameter list which defines the parameters $w and $h twice.

Due to this, it is impossible to create a mock of the stdGraphic class using PHPUnit.

In any way, I don’t know how the method should work correctly.

function imagecopyresized(&$im, $cpImg, $Xstart, $Ystart, $cpImgCutX, $cpImgCutY, $w, $h, $w, $h)

Reviews 3

  • TYPO3_4-6 6829[BUGFIX] imagecopyresized: correct invalid parameters Resolves this issue Merged Stefan Neufeind CR +2 V +2 → 4.4, 4.5, 4.6, 4.7 26660 Easy +25 −22 06/03/13, 20:49
  • TYPO3_4-5 6831[BUGFIX] imagecopyresized: correct invalid parameters Resolves this issue Merged Stefan Neufeind CR +2 V +2 → 4.5, 4.6, 4.7 26660 Normal +37 −36 06/03/13, 20:49
  • TYPO3_4-4 6834[BUGFIX] imagecopyresized: correct invalid parameters Resolves this issue Abandoned Stefan Neufeind CR 0 V 0 → 4.4, 4.5, 4.6, 4.7 26660 Normal +38 −37 06/03/13, 20:49

Related issues 2

  • Bug #36947GIFBUILDER render twice Related to Closed Image Cropping v4.7 Florian Zimmermann 05/08/12, 12:41
  • Bug #39563Regression in t3lib_iconWorks::imagecopyresized Related to Closed v6.0 Tymoteusz Motylewski 08/06/12, 23:53
Assigned to
Benjamin Schulte
Author
Benjamin Schulte
Priority
Should have
TYPO3 version
4.5
© 2026 TYPO3 GmbH.
  • API
  • Privacy Policy
  • Legal Notice
  • Feedback