1 <?php
2
3 4 5 6 7 8 9 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 }
28