[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/symfony/polyfill-php56/ -> bootstrap.php (source)

   1  <?php
   2  
   3  /*
   4   * This file is part of the Symfony package.
   5   *
   6   * (c) Fabien Potencier <fabien@symfony.com>
   7   *
   8   * For the full copyright and license information, please view the LICENSE
   9   * file that was distributed with this source code.
  10   */
  11  
  12  use Symfony\Polyfill\Php56 as p;
  13  
  14  if (PHP_VERSION_ID >= 50600) {
  15      return;
  16  }
  17  
  18  if (!function_exists('hash_equals')) {
  19      function hash_equals($knownString, $userInput) { return p\Php56::hash_equals($knownString, $userInput); }
  20  }
  21  if (extension_loaded('ldap') && !defined('LDAP_ESCAPE_FILTER')) {
  22      define('LDAP_ESCAPE_FILTER', 1);
  23  }
  24  if (extension_loaded('ldap') && !defined('LDAP_ESCAPE_DN')) {
  25      define('LDAP_ESCAPE_DN', 2);
  26  }
  27  
  28  if (extension_loaded('ldap') && !function_exists('ldap_escape')) {
  29      function ldap_escape($subject, $ignore = '', $flags = 0) { return p\Php56::ldap_escape($subject, $ignore, $flags); }
  30  }
  31  
  32  if (50509 === PHP_VERSION_ID && 4 === PHP_INT_SIZE) {
  33      // Missing functions in PHP 5.5.9 - affects 32 bit builds of Ubuntu 14.04LTS
  34      // See https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1315888
  35      if (!function_exists('gzopen') && function_exists('gzopen64')) {
  36          function gzopen($filename, $mode, $use_include_path = 0) { return gzopen64($filename, $mode, $use_include_path); }
  37      }
  38      if (!function_exists('gzseek') && function_exists('gzseek64')) {
  39          function gzseek($zp, $offset, $whence = SEEK_SET) { return gzseek64($zp, $offset, $whence); }
  40      }
  41      if (!function_exists('gztell') && function_exists('gztell64')) {
  42          function gztell($zp) { return gztell64($zp); }
  43      }
  44  }


Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1