Project

General

Profile

Actions

Bug #45073

closed

ClassLoader cache parsing error with comments

Added by Arne-Kolja Bachstein about 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2013-02-01
Due date:
% Done:

0%

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

Description

This one occured for me using YAG (Yet Another Gallery), but rather seems to be a core bug.

In YAG the class PidDetector gets cached and the cached file is put in /typo3temp/Cache/Code/cache_store/ClassLoader_PidDetector_[…].php. But afterwards TYPO3 won't run any more, because there is a parsing error in the resulting file. The parsing error is related to erroneously stripped line endings in a few lines that have a // comment:

Original file:

$pagesRows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
    'uid', //$select_fields,
    'pages', //$from_table,
    'module="yag"' //$where_clause,
);

Cached file:

$pagesRows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
      'uid', //$select_fields, 'pages', //$from_table, 'module="yag"' //$where_clause, );

When removing the comments in the original file, the cached one works … but still line endings get stripped like they maybe shouldn't.


Files

phpinfo.pdf (274 KB) phpinfo.pdf Gerald Amrhein, 2013-04-17 09:49

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #44378: TYPO3 6.0 is not compatible with Major Linux DistributionsClosedMichael Stucki2013-01-08

Actions
Actions

Also available in: Atom PDF