Project

General

Profile

Actions

Task #76804

closed

Epic #67261: Declutter GeneralUtility

Deprecate GeneralUtility::strtoupper & strtolower

Added by Georg Ringer over 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Code Cleanup
Start date:
2016-06-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The following methods of GeneralUtility should be deprecated:

  • strtoupper
  • strtolower

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #18478: Workariound for PHP-Bug with Locale tr_TRClosedMartin Kutschker2008-03-19

Actions
Related to TYPO3 Core - Bug #77551: FE breaks when config.locale_all = tr_TR.utf8Closed2016-08-19

Actions
Related to TYPO3 Core - Task #63288: Locale setting for FE: Remove workaround for PHP before 5.5Closed2014-11-24

Actions
Actions #1

Updated by Riccardo De Contardi over 8 years ago

  • Parent task set to #67261
Actions #2

Updated by Riccardo De Contardi over 8 years ago

  • Category set to Code Cleanup
Actions #3

Updated by Gerrit Code Review over 8 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 https://review.typo3.org/48832

Actions #4

Updated by Gerrit Code Review over 8 years ago

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

Actions #5

Updated by Gerrit Code Review over 8 years ago

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

Actions #6

Updated by Gerrit Code Review over 8 years ago

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

Actions #7

Updated by Georg Ringer over 8 years ago

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

Updated by Ernesto Baschny about 8 years ago

Post-Review:

How should that work with locale tr_TR? There is no upper-case "i" in that locale. Thats the main reason we introduced GeneralUtility::strtoupper in the first place, to make sure it works regardless of locale on all ASCII chars.

Just try that out:

<?php
setlocale(LC_CTYPE, 'tr_TR.utf8');
echo strtoupper('abcdi') . "\n";

The locale can be set in TypoScript by the user (config.locale_all). This broke many turkish sites back then (I think it was introduced with PHP 5.3). This still works like that in PHP 7 (at least under Linux - not on Mac!).

Maybe I am missing something?

Actions #10

Updated by Benni Mack over 7 years ago

  • Target version set to Candidate for Major Version
Actions #11

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF