Task #42293
closed
Please check for array, to avoid strict mode warnings
Added by Michael Schramm over 11 years ago.
Updated over 10 years ago.
Description
Dear Team,
please add a check on array ->
&& !is_array ($content)
in typo3\sysext\workspaces\Classes\Service\GridData.php
tx_Workspaces_Service_GridData::getDataArrayFromCache ()
on line 238
...
if ($content != FALSE && !is_array ($content) ) {
...
This avoids protocol warnings for strict mode
Warning examples
03:00:53 . [5] ! [5_0] Core: Error handler (BE): PHP Warning: unserialize() expects parameter 1 to be string, array given in ...typo3/sysext/workspaces/Classes/Service/GridData.php line 243
02:19:15 . . ! . Core: Error handler (BE): PHP Warning: unserialize() expects parameter 1 to be string, array given in .../typo3/sysext/workspaces/Classes/Service/GridData.php line 239
- Target version set to 4.5.23
- PHP Version set to 5.3
I prefer to analyse the origin of the warning and have that fixed instead of not showing it.
see issue #34117 for further details and how the behavior can be fixed - a patch is available as well
This behaviour occurs in TYPO3 4.5 only.
- Status changed from New to Closed
- Category changed from Labels / Error Messages to Workspaces
- Project changed from 624 to TYPO3 Core
- Category changed from Workspaces to Workspaces
Also available in: Atom
PDF