Skip to content

Commit ff21925

Browse files
ext/standard: add @compile-time-eval to a few more functions
1 parent 769441b commit ff21925

3 files changed

Lines changed: 24 additions & 13 deletions

File tree

ext/standard/basic_functions.stub.php

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,9 +1938,13 @@ function base64_decode(string $string, bool $strict = false): string|false {}
19381938

19391939
function constant(string $name): mixed {}
19401940

1941+
/** @compile-time-eval */
19411942
function ip2long(string $ip): int|false {}
19421943

1943-
/** @refcount 1 */
1944+
/**
1945+
* @compile-time-eval
1946+
* @refcount 1
1947+
*/
19441948
function long2ip(int $ip): string {}
19451949

19461950
/**
@@ -2194,7 +2198,10 @@ function hrtime(bool $as_number = false): array|int|float|false {}
21942198

21952199
/* md5.c */
21962200

2197-
/** @refcount 1 */
2201+
/**
2202+
* @compile-time-eval
2203+
* @refcount 1
2204+
*/
21982205
function md5(string $string, bool $binary = false): string {}
21992206

22002207
/** @refcount 1 */
@@ -2214,7 +2221,10 @@ function getlastmod(): int|false {}
22142221

22152222
/* sha1.c */
22162223

2217-
/** @refcount 1 */
2224+
/**
2225+
* @compile-time-eval
2226+
* @refcount 1
2227+
*/
22182228
function sha1(string $string, bool $binary = false): string {}
22192229

22202230
/** @refcount 1 */
@@ -3099,6 +3109,7 @@ function iptcparse(string $iptc_block): array|false {}
30993109

31003110
/* levenshtein.c */
31013111

3112+
/** @compile-time-eval */
31023113
function levenshtein(string $string1, string $string2, int $insertion_cost = 1, int $replacement_cost = 1, int $deletion_cost = 1): int {}
31033114

31043115
/* link.c */

ext/standard/basic_functions_arginfo.h

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

ext/standard/basic_functions_decl.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)