Skip to content

Commit c40ce1e

Browse files
committed
Remove(legacy): drop sfAPCCache cache as apc extension does not exist anymore
Please use sfAPCUCache instead
1 parent b74c8d7 commit c40ce1e

File tree

4 files changed

+4
-197
lines changed

4 files changed

+4
-197
lines changed

CHANGELOG.md

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

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

1012
28/02/2024: Version 1.5.18
1113
--------------------------

lib/autoload/sfCoreAutoload.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class sfCoreAutoload
4141
'sfautoloadagain' => 'autoload/sfAutoloadAgain.class.php',
4242
'sfcoreautoload' => 'autoload/sfCoreAutoload.class.php',
4343
'sfsimpleautoload' => 'autoload/sfSimpleAutoload.class.php',
44-
'sfapccache' => 'cache/sfAPCCache.class.php',
4544
'sfapcucache' => 'cache/sfAPCuCache.class.php',
4645
'sfcache' => 'cache/sfCache.class.php',
4746
'sfeacceleratorcache' => 'cache/sfEAcceleratorCache.class.php',

lib/cache/sfAPCCache.class.php

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

test/unit/cache/sfAPCCacheTest.php renamed to test/unit/cache/sfAPCuCacheTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
$plan = 64;
1414
$t = new lime_test($plan);
1515

16-
if (extension_loaded('apc')) {
17-
$cacheClass = 'sfAPCCache';
18-
} elseif (extension_loaded('apcu')) {
16+
if (extension_loaded('apcu')) {
1917
if ('5.1.22' === phpversion('apcu')) {
2018
$t->skip('APCu 5.1.22 has a regression and shouldn\'t be used', $plan);
2119

@@ -37,7 +35,7 @@
3735
}
3836

3937
if (!ini_get('apc.enable_cli')) {
40-
$t->skip('APC must be enable on CLI to run these tests', $plan);
38+
$t->skip('APCu must be enable on CLI to run these tests', $plan);
4139

4240
return;
4341
}

0 commit comments

Comments
 (0)