| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
* This file is part of the Symfony package. |
| 5 |
* |
| 6 |
* (c) Fabien Potencier <[email protected]> |
| 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\Php70 as p; |
| 13 |
|
| 14 |
if (PHP_VERSION_ID >= 70000) { |
| 15 |
return; |
| 16 |
} |
| 17 |
|
| 18 |
if (!defined('PHP_INT_MIN')) { |
| 19 |
define('PHP_INT_MIN', ~PHP_INT_MAX); |
| 20 |
} |
| 21 |
|
| 22 |
if (!function_exists('intdiv')) { |
| 23 |
function intdiv($num1, $num2) { return p\Php70::intdiv($num1, $num2); } |
| 24 |
} |
| 25 |
if (!function_exists('preg_replace_callback_array')) { |
| 26 |
function preg_replace_callback_array(array $pattern, $subject, $limit = -1, &$count = 0, $flags = null) { return p\Php70::preg_replace_callback_array($pattern, $subject, $limit, $count); } |
| 27 |
} |
| 28 |
if (!function_exists('error_clear_last')) { |
| 29 |
function error_clear_last() { return p\Php70::error_clear_last(); } |
| 30 |
} |