Skip to content

Commit a544fe1

Browse files
committed
Fix glob() RC info
glob() can return the immutable, empty, RCn array since GH-19642. Closes GH-19652
1 parent 17d4002 commit a544fe1

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Zend/Optimizer/zend_func_infos.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ static const func_info_t func_infos[] = {
510510
F1("getcwd", MAY_BE_STRING|MAY_BE_FALSE),
511511
F1("readdir", MAY_BE_STRING|MAY_BE_FALSE),
512512
F1("scandir", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_STRING|MAY_BE_FALSE),
513-
F1("glob", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_STRING|MAY_BE_FALSE),
513+
FN("glob", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_STRING|MAY_BE_FALSE),
514514
F1("exec", MAY_BE_STRING|MAY_BE_FALSE),
515515
F1("system", MAY_BE_STRING|MAY_BE_FALSE),
516516
F1("escapeshellcmd", MAY_BE_STRING),

ext/standard/basic_functions.stub.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2697,7 +2697,6 @@ function scandir(string $directory, int $sorting_order = SCANDIR_SORT_ASCENDING,
26972697

26982698
/**
26992699
* @return array<int, string>|false
2700-
* @refcount 1
27012700
*/
27022701
function glob(string $pattern, int $flags = 0): array|false {}
27032702

ext/standard/basic_functions_arginfo.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)