Skip to content

Commit 411cd04

Browse files
mvoriseknielsdos
authored andcommitted
Re-add some CTE functions that were removed from being CTE by a mistake
These functions were accidentally removed from being CTE in GH-7780. This patch brings them back. Closes GH-10768.
1 parent 7682868 commit 411cd04

File tree

5 files changed

+18
-8
lines changed

5 files changed

+18
-8
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ PHP NEWS
77
(Kévin Dunglas)
88
. Fixed use-after-free in recursive AST evaluation. (ilutov)
99
. Fixed bug GH-8646 (Memory leak PHP FPM 8.1). (nielsdos)
10+
. Re-add some CTE functions that were removed from being CTE by a mistake.
11+
(mvorisek)
1012

1113
- FTP:
1214
. Propagate success status of ftp_close(). (nielsdos)

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: 9 additions & 2 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 */
@@ -1653,7 +1657,10 @@ function pathinfo(string $path, int $flags = PATHINFO_ALL): array|string {}
16531657
/** @refcount 1 */
16541658
function stristr(string $haystack, string $needle, bool $before_needle = false): string|false {}
16551659

1656-
/** @refcount 1 */
1660+
/**
1661+
* @compile-time-eval
1662+
* @refcount 1
1663+
*/
16571664
function strstr(string $haystack, string $needle, bool $before_needle = false): string|false {}
16581665

16591666
/** @alias strstr */

ext/standard/basic_functions_arginfo.h

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

0 commit comments

Comments
 (0)