bootstrap.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. use Symfony\Polyfill\Ctype as p;
  11. if (\PHP_VERSION_ID >= 80000) {
  12. return require __DIR__.'/bootstrap80.php';
  13. }
  14. if (!function_exists('ctype_alnum')) {
  15. function ctype_alnum($text) { return p\Ctype::ctype_alnum($text); }
  16. }
  17. if (!function_exists('ctype_alpha')) {
  18. function ctype_alpha($text) { return p\Ctype::ctype_alpha($text); }
  19. }
  20. if (!function_exists('ctype_cntrl')) {
  21. function ctype_cntrl($text) { return p\Ctype::ctype_cntrl($text); }
  22. }
  23. if (!function_exists('ctype_digit')) {
  24. function ctype_digit($text) { return p\Ctype::ctype_digit($text); }
  25. }
  26. if (!function_exists('ctype_graph')) {
  27. function ctype_graph($text) { return p\Ctype::ctype_graph($text); }
  28. }
  29. if (!function_exists('ctype_lower')) {
  30. function ctype_lower($text) { return p\Ctype::ctype_lower($text); }
  31. }
  32. if (!function_exists('ctype_print')) {
  33. function ctype_print($text) { return p\Ctype::ctype_print($text); }
  34. }
  35. if (!function_exists('ctype_punct')) {
  36. function ctype_punct($text) { return p\Ctype::ctype_punct($text); }
  37. }
  38. if (!function_exists('ctype_space')) {
  39. function ctype_space($text) { return p\Ctype::ctype_space($text); }
  40. }
  41. if (!function_exists('ctype_upper')) {
  42. function ctype_upper($text) { return p\Ctype::ctype_upper($text); }
  43. }
  44. if (!function_exists('ctype_xdigit')) {
  45. function ctype_xdigit($text) { return p\Ctype::ctype_xdigit($text); }
  46. }