bootstrap.php 999 B

12345678910111213141516171819202122232425262728
  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\Php55 as p;
  11. if (PHP_VERSION_ID < 50500) {
  12. if (!function_exists('boolval')) {
  13. function boolval($val) { return p\Php55::boolval($val); }
  14. }
  15. if (!function_exists('json_last_error_msg')) {
  16. function json_last_error_msg() { return p\Php55::json_last_error_msg(); }
  17. }
  18. if (!function_exists('array_column')) {
  19. function array_column($array, $columnKey, $indexKey = null) { return p\Php55ArrayColumn::array_column($array, $columnKey, $indexKey); }
  20. }
  21. if (!function_exists('hash_pbkdf2')) {
  22. function hash_pbkdf2($algorithm, $password, $salt, $iterations, $length = 0, $rawOutput = false) { return p\Php55::hash_pbkdf2($algorithm, $password, $salt, $iterations, $length, $rawOutput); }
  23. }
  24. }