Skip to content

Commit 019e25d

Browse files
committed
Remove(legacy): drop XCache support, as the extension is not available for PHP >= 7.4
1 parent 04ec0aa commit 019e25d

File tree

6 files changed

+4
-242
lines changed

6 files changed

+4
-242
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CHANGELOG
66
xx/xx/xxxx: Version 1.5.xx
77
--------------------------
88

9+
* Remove sfXCacheCache as the extension is not available on PHP v7.4 anymore.
910
* Remove sfEAcceleratorCache as the extension is not available on PHP v7.4 anymore.
1011
* Remove sfAPCCache as it uses the `apc` extension, which is not available on PHP v7.4 anymore.
1112
[BC-Break] Use `sfAPCUCache` class instead, available on Symfony1 v1.5.16

data/bin/check_configuration.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ function get_ini_path()
7676
check(function_exists('utf8_decode'), 'The utf8_decode() is available', 'Install and enable the XML extension', false);
7777
check(function_exists('posix_isatty'), 'The posix_isatty() is available', 'Install and enable the php_posix extension (used to colorized the CLI output)', false);
7878

79-
$accelerator =
80-
((function_exists('apc_store') || function_exists('apcu_store')) && ini_get('apc.enabled'))
81-
|| function_exists('xcache_set');
82-
check($accelerator, 'A PHP accelerator is installed', 'Install a PHP accelerator like APC (highly recommended)', false);
79+
$apcu = (function_exists('apc_store') || function_exists('apcu_store')) && ini_get('apc.enabled');
80+
check($apcu, 'A PHP accelerator is installed', 'Install a PHP accelerator like APCu (highly recommended)', false);
8381

8482
check(!ini_get('short_open_tag'), 'php.ini has short_open_tag set to off', 'Set it to off in php.ini', false);
8583
check(!ini_get('session.auto_start'), 'php.ini has session.auto_start set to off', 'Set it to off in php.ini', false);

lib/autoload/sfCoreAutoload.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class sfCoreAutoload
4848
'sfmemcachecache' => 'cache/sfMemcacheCache.class.php',
4949
'sfnocache' => 'cache/sfNoCache.class.php',
5050
'sfsqlitecache' => 'cache/sfSQLiteCache.class.php',
51-
'sfxcachecache' => 'cache/sfXCacheCache.class.php',
5251
'sfansicolorformatter' => 'command/sfAnsiColorFormatter.class.php',
5352
'sfcommandapplication' => 'command/sfCommandApplication.class.php',
5453
'sfcommandargument' => 'command/sfCommandArgument.class.php',

lib/cache/sfXCacheCache.class.php

Lines changed: 0 additions & 201 deletions
This file was deleted.

lib/debug/sfWebDebugPanelConfig.class.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ public function getPanelContent()
3535
'compression' => sfConfig::get('sf_compressed') ? 'on' : 'off',
3636
'tokenizer' => function_exists('token_get_all') ? 'on' : 'off',
3737
'apc' => extension_loaded('apc') && ini_get('apc.enabled') ? 'on' : 'off',
38-
'xcache' => extension_loaded('xcache') && ini_get('xcache.cacher') ? 'on' : 'off',
3938
);
4039

4140
$html = '<ul id="sfWebDebugConfigSummary">';
4241
foreach ($config as $key => $value) {
43-
$html .= '<li class="is'.$value.('xcache' == $key ? ' last' : '').'">'.$key.'</li>';
42+
$html .= '<li class="is'.$value.'">'.$key.'</li>';
4443
}
4544
$html .= '</ul>';
4645

test/unit/cache/sfXCacheCacheTest.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)