mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

https://wiki.php.net/rfc/strtolower-ascii means that these functions no longer depend on the current locale in php 8.2. Before that, this was unsafe to evaluate at compile time. Followup to GH-7506 Add strcmp/strcasecmp/strtolower/strtoupper functions Add bin2hex/hex2bin and related functions Update test of garbage collection using strtolower to use something else to create a refcounted string
46 lines
1.6 KiB
PHP
46 lines
1.6 KiB
PHP
<?php
|
|
|
|
/** @generate-class-entries */
|
|
|
|
/** @param array $matches */
|
|
function preg_match(string $pattern, string $subject, &$matches = null, int $flags = 0, int $offset = 0): int|false {}
|
|
|
|
/** @param array $matches */
|
|
function preg_match_all(string $pattern, string $subject, &$matches = null, int $flags = 0, int $offset = 0): int|false {}
|
|
|
|
/**
|
|
* @param int $count
|
|
* @return string|array<int|string, string>|null
|
|
*/
|
|
function preg_replace(string|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, &$count = null): string|array|null {}
|
|
|
|
/**
|
|
* @param int $count
|
|
* @return string|array<int|string, string>|null
|
|
*/
|
|
function preg_filter(string|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, &$count = null): string|array|null {}
|
|
|
|
/**
|
|
* @param int $count
|
|
* @return string|array<int|string, string>|null
|
|
*/
|
|
function preg_replace_callback(string|array $pattern, callable $callback, string|array $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {}
|
|
|
|
/** @param int $count */
|
|
function preg_replace_callback_array(array $pattern, string|array $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {}
|
|
|
|
/**
|
|
* @return array<int|string, string|array>|false
|
|
* @refcount 1
|
|
*/
|
|
function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false {}
|
|
|
|
/** @compile-time-eval */
|
|
function preg_quote(string $str, ?string $delimiter = null): string {}
|
|
|
|
/** @refcount 1 */
|
|
function preg_grep(string $pattern, array $array, int $flags = 0): array|false {}
|
|
|
|
function preg_last_error(): int {}
|
|
|
|
function preg_last_error_msg(): string {}
|