Skip to content

Commit 4c86a21

Browse files
authored
Merge pull request #150 from Kharhamel/apcu_delete
remove apcu_delete from the safe list
2 parents b8848b0 + 4f3f4a0 commit 4c86a21

File tree

4 files changed

+1
-25
lines changed

4 files changed

+1
-25
lines changed

generated/apcu.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -69,29 +69,6 @@ function apcu_dec(string $key, int $step = 1, ?bool &$success = null, int $ttl =
6969
}
7070

7171

72-
/**
73-
* Removes a stored variable from the cache.
74-
*
75-
* @param string|string[]|\APCUIterator $key A key used to store the value as a
76-
* string for a single key,
77-
* or as an array of strings for several keys,
78-
* or as an APCUIterator object.
79-
* @return bool|array If key is an array, an indexed array of the keys is returned.
80-
* Otherwise TRUE is returned on success.
81-
* @throws ApcuException
82-
*
83-
*/
84-
function apcu_delete($key)
85-
{
86-
error_clear_last();
87-
$result = \apcu_delete($key);
88-
if ($result === false) {
89-
throw ApcuException::createFromPhpError();
90-
}
91-
return $result;
92-
}
93-
94-
9572
/**
9673
* Increases a stored number.
9774
*

generated/functionsList.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
'apcu_cache_info',
2323
'apcu_cas',
2424
'apcu_dec',
25-
'apcu_delete',
2625
'apcu_inc',
2726
'apcu_sma_info',
2827
'array_combine',

generator/config/ignoredFunctions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
'forward_static_call',
1616
'forward_static_call_array',
1717
'readdir', //the documentation is false: the function return false at the end of the iteration
18+
'apcu_delete', //apcu_delete returns false when the $key does not exist in the cache store
1819
];

rector-migrate.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ services:
2525
apcu_cache_info: 'Safe\apcu_cache_info'
2626
apcu_cas: 'Safe\apcu_cas'
2727
apcu_dec: 'Safe\apcu_dec'
28-
apcu_delete: 'Safe\apcu_delete'
2928
apcu_inc: 'Safe\apcu_inc'
3029
apcu_sma_info: 'Safe\apcu_sma_info'
3130
array_combine: 'Safe\array_combine'

0 commit comments

Comments
 (0)