bootstrap.php 934 B

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