Skip to content

Commit 8537cff

Browse files
committed
Fix #7780, some CTE functions were removed by a mistake
1 parent eb9d556 commit 8537cff

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

ext/gd/gd.stub.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ function imagesetbrush(GdImage $image, GdImage $brush): bool {}
541541
/** @refcount 1 */
542542
function imagecreate(int $width, int $height): GdImage|false {}
543543

544+
/** @compile-time-eval */
544545
function imagetypes(): int {}
545546

546547
/** @refcount 1 */

ext/gd/gd_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/standard/basic_functions.stub.php

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,10 @@ function array_filter(array $array, ?callable $callback = null, int $mode = 0):
11851185

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

1188-
/** @param string|int $key */
1188+
/**
1189+
* @param string|int $key
1190+
* @compile-time-eval
1191+
*/
11891192
function array_key_exists($key, array $array): bool {}
11901193

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

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

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

12031207
/* base64.c */
@@ -1650,10 +1654,16 @@ function dirname(string $path, int $levels = 1): string {}
16501654
*/
16511655
function pathinfo(string $path, int $flags = PATHINFO_ALL): array|string {}
16521656

1653-
/** @refcount 1 */
1657+
/**
1658+
* @compile-time-eval
1659+
* @refcount 1
1660+
*/
16541661
function stristr(string $haystack, string $needle, bool $before_needle = false): string|false {}
16551662

1656-
/** @refcount 1 */
1663+
/**
1664+
* @compile-time-eval
1665+
* @refcount 1
1666+
*/
16571667
function strstr(string $haystack, string $needle, bool $before_needle = false): string|false {}
16581668

16591669
/** @alias strstr */

ext/standard/basic_functions_arginfo.h

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)