[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/ -> compatibility.php (summary)

compatibility functions This file contains a few functions that might be missing from the PHP build

File Size: 145 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 9 functions

  ctype_space()
  ctype_digit()
  gzopen()
  gzseek()
  gztell()
  str_starts_with()
  str_contains()
  str_ends_with()
  array_is_list()

Functions
Functions that are not part of a class:

ctype_space($text)   X-Ref
Check for whitespace character(s)

see: ctype_space
param: string $text
return: bool

ctype_digit($text)   X-Ref
Check for numeric character(s)

see: ctype_digit
param: string $text
return: bool

gzopen($filename, $mode, $use_include_path = 0)   X-Ref
work around for PHP compiled against certain zlib versions #865

link: http://stackoverflow.com/questions/23417519/php-zlib-gzopen-not-exists
param: string $filename
param: string $mode
param: int $use_include_path
return: mixed

gzseek($zp, $offset, $whence = SEEK_SET)   X-Ref
work around for PHP compiled against certain zlib versions #865

link: http://stackoverflow.com/questions/23417519/php-zlib-gzopen-not-exists
param: resource $zp
param: int $offset
param: int $whence
return: int

gztell($zp)   X-Ref
work around for PHP compiled against certain zlib versions #865

link: http://stackoverflow.com/questions/23417519/php-zlib-gzopen-not-exists
param: resource $zp
return: int

str_starts_with(?string $haystack, ?string $needle)   X-Ref
polyfill for PHP < 8

see: https://www.php.net/manual/en/function.str-starts-with

str_contains(?string $haystack, ?string $needle)   X-Ref
polyfill for PHP < 8

see: https://www.php.net/manual/en/function.str-contains

str_ends_with(?string $haystack, ?string $needle)   X-Ref
polyfill for PHP < 8

see: https://www.php.net/manual/en/function.str-ends-with

array_is_list(array $arr)   X-Ref
polyfill for PHP < 8.1

see: https://www.php.net/manual/en/function.array-is-list