bootstrap.php 874 B

123456789101112131415161718192021222324252627282930
  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. use Symfony\Polyfill\Php70 as p;
  11. if (PHP_VERSION_ID >= 70000) {
  12. return;
  13. }
  14. if (!defined('PHP_INT_MIN')) {
  15. define('PHP_INT_MIN', ~PHP_INT_MAX);
  16. }
  17. if (!function_exists('intdiv')) {
  18. function intdiv($dividend, $divisor) { return p\Php70::intdiv($dividend, $divisor); }
  19. }
  20. if (!function_exists('preg_replace_callback_array')) {
  21. function preg_replace_callback_array(array $patterns, $subject, $limit = -1, &$count = 0) { return p\Php70::preg_replace_callback_array($patterns, $subject, $limit, $count); }
  22. }
  23. if (!function_exists('error_clear_last')) {
  24. function error_clear_last() { return p\Php70::error_clear_last(); }
  25. }