Skip to content

Commit 63912b5

Browse files
authoredJul 15, 2022
Fix RC func info of str_split (#9016)
Introduced in GH-8945 With RETURN_EMPTY_ARRAY this function can now return an interned array which has refcount 2.
1 parent af15923 commit 63912b5

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed
 

‎Zend/Optimizer/zend_func_infos.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ static const func_info_t func_infos[] = {
571571
F1("str_rot13", MAY_BE_STRING),
572572
F1("str_shuffle", MAY_BE_STRING),
573573
F1("str_word_count", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_STRING|MAY_BE_LONG),
574-
F1("str_split", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_STRING),
574+
FN("str_split", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_STRING),
575575
F1("strpbrk", MAY_BE_STRING|MAY_BE_FALSE),
576576
F1("utf8_encode", MAY_BE_STRING),
577577
F1("utf8_decode", MAY_BE_STRING),

‎ext/standard/basic_functions.stub.php

-1
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,6 @@ function str_word_count(string $string, int $format = 0, ?string $characters = n
10001000

10011001
/**
10021002
* @return array<int, string>
1003-
* @refcount 1
10041003
* @compile-time-eval
10051004
*/
10061005
function str_split(string $string, int $length = 1): array {}

‎ext/standard/basic_functions_arginfo.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)