Project

General

Profile

Actions

Bug #68132

closed

It's not possible to use 0 as a TypoScript userfunc argument

Added by Sascha Egerer over 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
Start date:
2015-07-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Remote Sprint

Description

It's not possible to use 0 as a argument in a TypoScript Userfunc as you will get this Error:

PHP Warning: Missing argument 2 for Vendor\Class::myFunction() in ...

Example Func:

...
        /*
     * @param string $param1 
     * @param int $param2
     * @return boolean
     */
    public function myFunction($param1, $param2) {
...

Example Call:

[userFunc = \Vendor\Class::myFunction(foo,0)] 
...
[global]


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #61256: parseUserFuncArguments getting no single arguments to user_functions in conditions Closed2014-08-28

Actions
Actions #1

Updated by Gerrit Code Review over 9 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41218

Actions #2

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41225

Actions #3

Updated by Sascha Egerer over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF