Skip to content

Commit cff7ca3

Browse files
committed
Remove APC bits
These have been deprecated for a looooooong time, and are no longer even present in 8.1+, which breaks generation with multiple versions
1 parent 81210ac commit cff7ca3

File tree

6 files changed

+0
-36
lines changed

6 files changed

+0
-36
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"generated/Exceptions/"
1212
],
1313
"files": [
14-
"deprecated/apc.php",
1514
"deprecated/array.php",
1615
"deprecated/datetime.php",
1716
"deprecated/libevent.php",

deprecated/functionsList.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
<?php
22

33
return [
4-
'apc_cache_info',
5-
'apc_cas',
6-
'apc_compile_file',
7-
'apc_dec',
8-
'apc_define_constants',
9-
'apc_delete',
10-
'apc_delete_file',
11-
'apc_inc',
12-
'apc_load_constants',
13-
'apc_sma_info',
144
'arsort',
155
'array_replace',
166
'array_replace_recursive',

generated/functionsList.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
'apcu_fetch',
1212
'apcu_inc',
1313
'apcu_sma_info',
14-
'apc_fetch',
1514
'array_all',
1615
'base64_decode',
1716
'bindtextdomain',

generator/config/specialCasesFunctions.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
return [
77
'json_decode',
8-
'apc_fetch',
98
'apcu_fetch',
109
'fputcsv',
1110
'preg_replace',

lib/special_cases.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use Safe\Exceptions\MiscException;
1212
use Safe\Exceptions\PosixException;
1313
use Safe\Exceptions\SocketsException;
14-
use Safe\Exceptions\ApcException;
1514
use Safe\Exceptions\ApcuException;
1615
use Safe\Exceptions\JsonException;
1716
use Safe\Exceptions\OpensslException;
@@ -43,27 +42,6 @@ function json_decode(string $json, bool $associative = false, int $depth = 512,
4342
return $data;
4443
}
4544

46-
47-
/**
48-
* Fetchs a stored variable from the cache.
49-
*
50-
* @param mixed $key The key used to store the value (with
51-
* apc_store). If an array is passed then each
52-
* element is fetched and returned.
53-
* @return mixed The stored variable or array of variables on success; FALSE on failure
54-
* @throws ApcException
55-
*
56-
*/
57-
function apc_fetch($key)
58-
{
59-
error_clear_last();
60-
$result = \apc_fetch($key, $success);
61-
if ($success === false) {
62-
throw ApcException::createFromPhpError();
63-
}
64-
return $result;
65-
}
66-
6745
/**
6846
* Fetchs an entry from the cache.
6947
*

rector-migrate.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
'apcu_fetch' => 'Safe\apcu_fetch',
1919
'apcu_inc' => 'Safe\apcu_inc',
2020
'apcu_sma_info' => 'Safe\apcu_sma_info',
21-
'apc_fetch' => 'Safe\apc_fetch',
2221
'array_all' => 'Safe\array_all',
2322
'base64_decode' => 'Safe\base64_decode',
2423
'bindtextdomain' => 'Safe\bindtextdomain',

0 commit comments

Comments
 (0)