Bug #56546

PHP5.3 OpcodeCache issue: "Cannot access static:: when no class scope is active"

Added by Alexander Opitz over 1 year ago. Updated over 1 year ago.

Status:Resolved Start date:2014-03-04
Priority:Should have Due date:
Assigned To:Alexander Opitz % Done:

100%

Category:- Spent time: -
Target version:6.2.0
TYPO3 Version:6.2 Is Regression:No
PHP Version: Sprint Focus:
Complexity:

Description

In PHP5.3 the static class scope isn't bind to the anonymous function. So we need an extra function to get the state in the OpcodeCache configuration function.

Travis error: https://travis-ci.org/TYPO3/TYPO3.CMS/jobs/20064291


Related issues

related to Core - Bug #55252: PHP 5.5 and require LocalConfiguration Resolved 2014-01-22

Associated revisions

Revision d12424f1
Added by Alexander Opitz over 1 year ago

[BUGFIX] Fix OpcodeCache for PHP 5.3

In PHP 5.3 anonymous functions can't be bound to static/self so an extra
call to a public function is needed.

Resolves: #56546
Related: #55252
Releases: 6.2
Change-Id: I56fc8c4ae92e50c35e972413540b43ec1fa714fc
Reviewed-on: https://review.typo3.org/28048
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers

History

#1 Updated by Gerrit Code Review over 1 year ago

  • Status changed from Accepted to Under Review

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/28048

#2 Updated by Gerrit Code Review over 1 year 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/28048

#3 Updated by Alexander Opitz over 1 year ago

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

Also available in: Atom PDF