PluginProbe
Packeta / 1.6.1
Packeta v1.6.1
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / deps / symfony / polyfill-php72 / bootstrap.php

bootstrap.php in Packeta 1.6.1, at deps/symfony/polyfill-php72/bootstrap.php

81 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Packetery;
4
5 /*
6 * This file is part of the Symfony package.
7 *
8 * (c) Fabien Potencier <fabien@symfony.com>
9 *
10 * For the full copyright and license information, please view the LICENSE
11 * file that was distributed with this source code.
12 */
13 use Packetery\Symfony\Polyfill\Php72 as p;
14 if (\PHP_VERSION_ID >= 70200) {
15 return;
16 }
17 if (!\defined('PHP_FLOAT_DIG')) {
18 \define('PHP_FLOAT_DIG', 15);
19 }
20 if (!\defined('PHP_FLOAT_EPSILON')) {
21 \define('PHP_FLOAT_EPSILON', 2.2204460492503E-16);
22 }
23 if (!\defined('PHP_FLOAT_MIN')) {
24 \define('PHP_FLOAT_MIN', 2.2250738585072E-308);
25 }
26 if (!\defined('PHP_FLOAT_MAX')) {
27 \define('PHP_FLOAT_MAX', 1.7976931348623157E+308);
28 }
29 if (!\defined('PHP_OS_FAMILY')) {
30 \define('PHP_OS_FAMILY', p\Php72::php_os_family());
31 }
32 if ('\\' === \DIRECTORY_SEPARATOR && !\function_exists('sapi_windows_vt100_support')) {
33 function sapi_windows_vt100_support($stream, $enable = null)
34 {
35 return p\Php72::sapi_windows_vt100_support($stream, $enable);
36 }
37 }
38 if (!\function_exists('stream_isatty')) {
39 function stream_isatty($stream)
40 {
41 return p\Php72::stream_isatty($stream);
42 }
43 }
44 if (!\function_exists('utf8_encode')) {
45 function utf8_encode($string)
46 {
47 return p\Php72::utf8_encode($string);
48 }
49 }
50 if (!\function_exists('utf8_decode')) {
51 function utf8_decode($string)
52 {
53 return p\Php72::utf8_decode($string);
54 }
55 }
56 if (!\function_exists('spl_object_id')) {
57 function spl_object_id($object)
58 {
59 return p\Php72::spl_object_id($object);
60 }
61 }
62 if (!\function_exists('mb_ord')) {
63 function mb_ord($string, $encoding = null)
64 {
65 return p\Php72::mb_ord($string, $encoding);
66 }
67 }
68 if (!\function_exists('mb_chr')) {
69 function mb_chr($codepoint, $encoding = null)
70 {
71 return p\Php72::mb_chr($codepoint, $encoding);
72 }
73 }
74 if (!\function_exists('mb_scrub')) {
75 function mb_scrub($string, $encoding = null)
76 {
77 $encoding = null === $encoding ? \mb_internal_encoding() : $encoding;
78 return \mb_convert_encoding($string, $encoding, $encoding);
79 }
80 }
81