Actions
Bug #59364
closedIllegal string offset 'uid' in TypoScriptFrontendController.php line 1281
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-06-05
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
When the backend user session has timed out, you can get this PHP Warning in the frontend.
The be_sessions entry is deleted, so reloading solves the problem.
The Bug exists because logoff changes AbstractUserAuthentication->user to an empty string instead of setting it to null.
Solution is simple: Just set user = null instead of user = ''
PHP 5.4 changed accessing strings with invalid offsets to a warning:
http://docs.php.net/manual/da/language.types.array.php#example-81
Actions