Yaffs site version 1.1
[yaffs-website] / vendor / symfony / polyfill-php55 / bootstrap.php
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\Php55 as p;
13
14 if (PHP_VERSION_ID < 50500) {
15     if (!function_exists('boolval')) {
16         function boolval($val) { return p\Php55::boolval($val); }
17     }
18     if (!function_exists('json_last_error_msg')) {
19         function json_last_error_msg() { return p\Php55::json_last_error_msg(); }
20     }
21     if (!function_exists('array_column')) {
22         function array_column($array, $columnKey, $indexKey = null) { return p\Php55ArrayColumn::array_column($array, $columnKey, $indexKey); }
23     }
24     if (!function_exists('hash_pbkdf2')) {
25         function hash_pbkdf2($algorithm, $password, $salt, $iterations, $length = 0, $rawOutput = false) { return p\Php55::hash_pbkdf2($algorithm, $password, $salt, $iterations, $length, $rawOutput); }
26     }
27 }