mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 23:08:46 +02:00
⬆️ N°4770 Update to latest Symfony 3.4
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
Symfony Polyfill / APCu
|
||||
========================
|
||||
|
||||
This component provides `apcu_*` functions and the `APCUIterator` class to users of the legacy APC extension.
|
||||
This component provides `apcu_*` functions and the `APCuIterator` class to users of the legacy APC extension.
|
||||
|
||||
More information can be found in the
|
||||
[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).
|
||||
|
||||
@@ -15,30 +15,61 @@ if (!extension_loaded('apc') && !extension_loaded('apcu')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!function_exists('apcu_add')) {
|
||||
if (extension_loaded('Zend Data Cache')) {
|
||||
if (extension_loaded('Zend Data Cache')) {
|
||||
if (!function_exists('apcu_add')) {
|
||||
function apcu_add($key, $var = null, $ttl = 0) { return p\Apcu::apcu_add($key, $var, $ttl); }
|
||||
}
|
||||
if (!function_exists('apcu_delete')) {
|
||||
function apcu_delete($key) { return p\Apcu::apcu_delete($key); }
|
||||
}
|
||||
if (!function_exists('apcu_exists')) {
|
||||
function apcu_exists($keys) { return p\Apcu::apcu_exists($keys); }
|
||||
}
|
||||
if (!function_exists('apcu_fetch')) {
|
||||
function apcu_fetch($key, &$success = null) { return p\Apcu::apcu_fetch($key, $success); }
|
||||
}
|
||||
if (!function_exists('apcu_store')) {
|
||||
function apcu_store($key, $var = null, $ttl = 0) { return p\Apcu::apcu_store($key, $var, $ttl); }
|
||||
} else {
|
||||
}
|
||||
} else {
|
||||
if (!function_exists('apcu_add')) {
|
||||
function apcu_add($key, $var = null, $ttl = 0) { return apc_add($key, $var, $ttl); }
|
||||
}
|
||||
if (!function_exists('apcu_delete')) {
|
||||
function apcu_delete($key) { return apc_delete($key); }
|
||||
}
|
||||
if (!function_exists('apcu_exists')) {
|
||||
function apcu_exists($keys) { return apc_exists($keys); }
|
||||
}
|
||||
if (!function_exists('apcu_fetch')) {
|
||||
function apcu_fetch($key, &$success = null) { return apc_fetch($key, $success); }
|
||||
}
|
||||
if (!function_exists('apcu_store')) {
|
||||
function apcu_store($key, $var = null, $ttl = 0) { return apc_store($key, $var, $ttl); }
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('apcu_cache_info')) {
|
||||
function apcu_cache_info($limited = false) { return apc_cache_info('user', $limited); }
|
||||
}
|
||||
if (!function_exists('apcu_cas')) {
|
||||
function apcu_cas($key, $old, $new) { return apc_cas($key, $old, $new); }
|
||||
}
|
||||
if (!function_exists('apcu_clear_cache')) {
|
||||
function apcu_clear_cache() { return apc_clear_cache('user'); }
|
||||
}
|
||||
if (!function_exists('apcu_dec')) {
|
||||
function apcu_dec($key, $step = 1, &$success = false) { return apc_dec($key, $step, $success); }
|
||||
}
|
||||
if (!function_exists('apcu_inc')) {
|
||||
function apcu_inc($key, $step = 1, &$success = false) { return apc_inc($key, $step, $success); }
|
||||
}
|
||||
if (!function_exists('apcu_sma_info')) {
|
||||
function apcu_sma_info($limited = false) { return apc_sma_info($limited); }
|
||||
}
|
||||
|
||||
if (!class_exists('APCUIterator', false) && class_exists('APCIterator', false)) {
|
||||
class APCUIterator extends APCIterator
|
||||
if (!class_exists('APCuIterator', false) && class_exists('APCIterator', false)) {
|
||||
class APCuIterator extends APCIterator
|
||||
{
|
||||
public function __construct($search = null, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE)
|
||||
{
|
||||
|
||||
@@ -25,7 +25,11 @@
|
||||
"minimum-stability": "dev",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.13-dev"
|
||||
"dev-main": "1.19-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
"url": "https://github.com/symfony/polyfill"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user