Bug #38717

strftime() expects parameter 2 to be long, string given

Added by Simon Schaufelberger almost 9 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Must have
Category:
TypoScript
Target version:
Start date:
2012-07-06
Due date:
% Done:

100%

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

Description

The typoscript rendering process with stdWrap does not handle empty values corrent:

Warning: strftime() expects parameter 2 to be long, string given in \typo3\sysext\cms\tslib\class.tslib_content.php on line 2571

A simple example to reproduce it:

10 = TEXT
10 {
strftime = %d
}

in the date stdWrap this was fixed, see #30931


Related issues

Related to TYPO3 Core - Bug #30931: date() expects parameter 2 to be long, string given in class.tslib_content.phpClosed2011-10-14

Actions
Related to TYPO3 Core - Task #40876: Add unit test for stdWrap_strftimeClosedJigal van Hemert2012-09-12

Actions
#1

Updated by Jigal van Hemert almost 9 years ago

  • Category set to TypoScript
  • Status changed from New to Accepted
  • Assignee set to Jigal van Hemert
  • Target version set to 4.5.18
  • Complexity set to easy
#2

Updated by Gerrit Code Review almost 9 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12713

#3

Updated by Simon Schaufelberger over 8 years ago

common guys, please merge that one. it has already been solved for the date function and this is just the same fix for the strftime function.

#4

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12713

#5

Updated by Jigal van Hemert over 8 years ago

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

Updated by Riccardo De Contardi over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF