Project

General

Profile

Actions

Bug #26091

closed

Call to stdWrap() of non-existant $this->cObj in GifBuilder

Added by Steffen Gebert about 13 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Image Cropping
Target version:
Start date:
2011-04-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

A PHP Fatal Error occurs in tslib_gifBuilder::checkTextObj(), because $this->cObj is not set, however this->cObj->stdWrap() is called.

A few lines later, a local variable $cObj is initialized.

    function checkTextObj($conf)    {
1        $isStdWrapped = array();
2        foreach($conf as $key => $value) {
3            $parameter = rtrim($key,'.');
4            if(!$isStdWrapped[$parameter] && isset($conf[$parameter.'.'])) {
5                $conf[$parameter] = $this->cObj->stdWrap($conf[$parameter], $conf[$parameter.'.']);
6                $isStdWrapped[$parameter] = 1;
7            }
8        }
...
17        $cObj =t3lib_div::makeInstance('tslib_cObj');
18        $cObj->start($this->data);

(call in line 5)


Related issues 1 (0 open1 closed)

Follows TYPO3 Core - Feature #24090: Optimize stdWrap usage for GIFBUILDERClosedSusanne Moog2010-11-17

Actions
Actions

Also available in: Atom PDF