4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 use Symfony\Polyfill\Php55 as p;
14 if (PHP_VERSION_ID < 50500) {
15 if (!function_exists('boolval')) {
16 function boolval($val) { return p\Php55::boolval($val); }
18 if (!function_exists('json_last_error_msg')) {
19 function json_last_error_msg() { return p\Php55::json_last_error_msg(); }
21 if (!function_exists('array_column')) {
22 function array_column($array, $columnKey, $indexKey = null) { return p\Php55ArrayColumn::array_column($array, $columnKey, $indexKey); }
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); }