Skip to content

Fix #7780, CTE flags for some functions were removed by a mistake #10768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ext/gd/gd.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ function imagesetbrush(GdImage $image, GdImage $brush): bool {}
/** @refcount 1 */
function imagecreate(int $width, int $height): GdImage|false {}

/** @compile-time-eval */
function imagetypes(): int {}

/** @refcount 1 */
Expand Down
4 changes: 2 additions & 2 deletions ext/gd/gd_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions ext/standard/basic_functions.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,10 @@ function array_filter(array $array, ?callable $callback = null, int $mode = 0):

function array_map(?callable $callback, array $array, array ...$arrays): array {}

/** @param string|int $key */
/**
* @param string|int $key
* @compile-time-eval
*/
function array_key_exists($key, array $array): bool {}

/**
Expand All @@ -1198,6 +1201,7 @@ function array_chunk(array $array, int $length, bool $preserve_keys = false): ar

function array_combine(array $keys, array $values): array {}

/** @compile-time-eval */
function array_is_list(array $array): bool {}

/* base64.c */
Expand Down Expand Up @@ -1653,7 +1657,10 @@ function pathinfo(string $path, int $flags = PATHINFO_ALL): array|string {}
/** @refcount 1 */
function stristr(string $haystack, string $needle, bool $before_needle = false): string|false {}

/** @refcount 1 */
/**
* @compile-time-eval
* @refcount 1
*/
function strstr(string $haystack, string $needle, bool $before_needle = false): string|false {}

/** @alias strstr */
Expand Down
8 changes: 4 additions & 4 deletions ext/standard/basic_functions_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.