Skip to content

Commit a262200

Browse files
committed
Address review comments
1 parent bead4d5 commit a262200

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

Zend/Optimizer/zend_func_infos.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,10 @@ static const func_info_t func_infos[] = {
140140
F1("chr", MAY_BE_STRING),
141141
F1("ucwords", MAY_BE_STRING),
142142
F1("strrev", MAY_BE_STRING),
143-
F1("addcslashes", MAY_BE_STRING),
144-
F1("addslashes", MAY_BE_STRING),
145143
F1("stripcslashes", MAY_BE_STRING),
146144
F1("stripslashes", MAY_BE_STRING),
147-
F1("str_replace", MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_KEY_STRING|MAY_BE_ARRAY_OF_STRING|MAY_BE_ARRAY_OF_ARRAY|MAY_BE_ARRAY_OF_OBJECT),
148-
F1("str_ireplace", MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_KEY_STRING|MAY_BE_ARRAY_OF_STRING|MAY_BE_ARRAY_OF_ARRAY|MAY_BE_ARRAY_OF_OBJECT),
145+
F1("str_replace", MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_KEY_STRING|MAY_BE_ARRAY_OF_STRING),
146+
F1("str_ireplace", MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_KEY_STRING|MAY_BE_ARRAY_OF_STRING),
149147
F1("hebrev", MAY_BE_STRING),
150148
F1("strip_tags", MAY_BE_STRING),
151149
F1("str_getcsv", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_STRING|MAY_BE_ARRAY_OF_NULL),

ext/standard/basic_functions.stub.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -683,10 +683,8 @@ function strrev(string $string): string {}
683683
/** @param float $percent */
684684
function similar_text(string $string1, string $string2, &$percent = null): int {}
685685

686-
/** @refcount 1 */
687686
function addcslashes(string $string, string $characters): string {}
688687

689-
/** @refcount 1 */
690688
function addslashes(string $string): string {}
691689

692690
/** @refcount 1 */
@@ -697,14 +695,14 @@ function stripslashes(string $string): string {}
697695

698696
/**
699697
* @param int $count
700-
* @return string|array<int|string, string|array|object>
698+
* @return string|array<int|string, string>
701699
* @refcount 1
702700
*/
703701
function str_replace(array|string $search, array|string $replace, string|array $subject, &$count = null): string|array {}
704702

705703
/**
706704
* @param int $count
707-
* @return string|array<int|string, string|array|object>
705+
* @return string|array<int|string, string>
708706
* @refcount 1
709707
*/
710708
function str_ireplace(array|string $search, array|string $replace, string|array $subject, &$count = null): string|array {}

ext/standard/basic_functions_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 96f464990e1c202f194846a6ac7d67c4a50ef280 */
2+
* Stub hash: deef116cfa7b53edc0a2fbcc1fb9f8ff9821d952 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
55
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)

0 commit comments

Comments
 (0)