[BUGFIX] Warn about apc.enable_cli=0 on command line 35/28035/4
authorChristian Weiske <christian.weiske@netresearch.de>
Tue, 4 Mar 2014 13:18:50 +0000 (14:18 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 7 Mar 2014 13:59:34 +0000 (14:59 +0100)
commitae8c0f0a7ef690f95a6ba39633d7db8507c45837
tree54796ced22d4d62512edeef764353f0c037d1ac8
parent1415f45ecdccd1fd68fb7d6f51c9a69a6e828651
[BUGFIX] Warn about apc.enable_cli=0 on command line

When running a CLI script via typo3/cli_dispatch.phpsh,
using the APC caching backend will lead to errors like
> TYPO3 Exception #1232986877: Could not set value.

This patch checks if TYPO3 is running on CLI, and validates the
apc.enable_cli setting to give a proper error message.

Change-Id: Icbeb619fc2054634274b492df94dbbc89958a8b6
Resolves: #25274
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/28035
Reviewed-by: Ernesto Baschny
Reviewed-by: Andreas Fernandez
Tested-by: Andreas Fernandez
Reviewed-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Cache/Backend/ApcBackend.php