Task #50474

PhpFrontend should return original string in get

Added by Christian Müller about 2 years ago. Updated almost 2 years ago.

Status:Resolved Start date:2013-07-26
Priority:Should have Due date:
Assigned To:Christian Müller % Done:

100%

Category:Cache
Target version:-
Sprint: Has patch:No
PHP Version: Complexity:easy

Description

The PhpFrontend automatically wraps the given string of code before setting it in the backend:

$sourceCode = '<?php' . chr(10) . $sourceCode . chr(10) . '#';

On get() the wrapped first and last line should be removed so you can retrieve the original piece of code that was stored in the cache.

Associated revisions

Revision bdebde07
Added by Christian Müller almost 2 years ago

[TASK] PhpFrontend has a method to return original code

With this change the PhpFrontend has the added method
getWrappend(), which returns the code including the
automatically added php opening tag and ending line.
The method get() returns exactly the same string that was stored
in the cache.

Change-Id: Ifa3c705ef2053614c07c497eaabf74dd8c806731
Releases: master
Resolves: #50474

History

#1 Updated by Gerrit Code Review about 2 years ago

  • Status changed from New to Under Review

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

#2 Updated by Gerrit Code Review about 2 years ago

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

#3 Updated by Gerrit Code Review about 2 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22597

#4 Updated by Gerrit Code Review about 2 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22597

#5 Updated by Aske Ertmann about 2 years ago

  • Tracker changed from Bug to Task

#6 Updated by Gerrit Code Review about 2 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22597

#7 Updated by Gerrit Code Review almost 2 years ago

Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22597

#8 Updated by Gerrit Code Review almost 2 years ago

Patch set 7 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22597

#9 Updated by Gerrit Code Review almost 2 years ago

Patch set 8 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22597

#10 Updated by Christian Müller almost 2 years ago

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

Also available in: Atom PDF