Skip to content

Commit 4d4fd4e

Browse files
authored
[k2] add f$preg_split to runtime-light (#1451)
1 parent 2aa4f74 commit 4d4fd4e

File tree

8 files changed

+361
-216
lines changed

8 files changed

+361
-216
lines changed

builtin-functions/kphp-light/stdlib/regex-functions.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ function preg_replace_callback(
3939
&$replace_count ::: int = TODO,
4040
$flags ::: int = 0): string | ^3 | null;
4141

42+
function preg_split ($pattern ::: string, $subject ::: string, $limit ::: int = -1, $flags ::: int = 0) ::: mixed[] | false;
43+
4244
// ===== UNSUPPORTED =====
4345

4446
/** @kphp-extern-func-info stub generation-required */
4547
function preg_last_error() ::: int;
4648

47-
/** @kphp-extern-func-info stub */
48-
function preg_split ($pattern ::: regexp, $subject ::: string, $limit ::: int = -1, $flags ::: int = 0) ::: mixed[] | false;
49-

0 commit comments

Comments
 (0)