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\Php70 as p;
14 if (PHP_VERSION_ID < 70000) {
15 if (!defined('PHP_INT_MIN')) {
16 define('PHP_INT_MIN', ~PHP_INT_MAX);
18 if (!function_exists('intdiv')) {
19 function intdiv($dividend, $divisor) { return p\Php70::intdiv($dividend, $divisor); }
21 if (!function_exists('preg_replace_callback_array')) {
22 function preg_replace_callback_array(array $patterns, $subject, $limit = -1, &$count = 0) { return p\Php70::preg_replace_callback_array($patterns, $subject, $limit, $count); }
24 if (!function_exists('error_clear_last')) {
25 function error_clear_last() { return p\Php70::error_clear_last(); }