Drupal investigation

bootstrap.php 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. if (!extension_loaded('apc')) {
  11. return;
  12. }
  13. if (!function_exists('apcu_add')) {
  14. function apcu_add($key, $var = null, $ttl = 0) { return apc_add($key, $var, $ttl); }
  15. function apcu_cache_info($limited = false) { return apc_cache_info('user', $limited); }
  16. function apcu_cas($key, $old, $new) { return apc_cas($key, $old, $new); }
  17. function apcu_clear_cache() { return apc_clear_cache('user'); }
  18. function apcu_dec($key, $step = 1, &$success = false) { return apc_dec($key, $step, $success); }
  19. function apcu_delete($key) { return apc_delete($key); }
  20. function apcu_exists($keys) { return apc_exists($keys); }
  21. function apcu_fetch($key, &$success = false) { return apc_fetch($key, $success); }
  22. function apcu_inc($key, $step = 1, &$success = false) { return apc_inc($key, $step, $success); }
  23. function apcu_sma_info($limited = false) { return apc_sma_info($limited); }
  24. function apcu_store($key, $var = null, $ttl = 0) { return apc_store($key, $var, $ttl); }
  25. }
  26. if (!class_exists('APCUIterator', false) && class_exists('APCIterator', false)) {
  27. class APCUIterator extends APCIterator
  28. {
  29. public function __construct($search = null, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE)
  30. {
  31. parent::__construct('user', $search, $format, $chunk_size, $list);
  32. }
  33. }
  34. }