@@ -1722,14 +1722,14 @@ function array_pad(array $array, int $length, mixed $value): array {}
1722
1722
1723
1723
/**
1724
1724
* @return array<int|string, int|string>
1725
- * @refcount 1
1726
1725
* @compile-time-eval
1726
+ * @refcount 1
1727
1727
*/
1728
1728
function array_flip (array $ array ): array {}
1729
1729
1730
1730
/**
1731
- * @refcount 1
1732
1731
* @compile-time-eval
1732
+ * @refcount 1
1733
1733
*/
1734
1734
function array_change_key_case (array $ array , int $ case = CASE_LOWER ): array {}
1735
1735
@@ -1738,7 +1738,10 @@ function array_change_key_case(array $array, int $case = CASE_LOWER): array {}
1738
1738
*/
1739
1739
function array_unique (array $ array , int $ flags = SORT_STRING ): array {}
1740
1740
1741
- /** @refcount 1 */
1741
+ /**
1742
+ * @compile-time-eval
1743
+ * @refcount 1
1744
+ */
1742
1745
function array_intersect_key (array $ array , array ...$ arrays ): array {}
1743
1746
1744
1747
/**
@@ -1747,7 +1750,10 @@ function array_intersect_key(array $array, array ...$arrays): array {}
1747
1750
*/
1748
1751
function array_intersect_ukey (array $ array , ...$ rest ): array {}
1749
1752
1750
- /** @refcount 1 */
1753
+ /**
1754
+ * @compile-time-eval
1755
+ * @refcount 1
1756
+ */
1751
1757
function array_intersect (array $ array , array ...$ arrays ): array {}
1752
1758
1753
1759
/**
@@ -1756,7 +1762,10 @@ function array_intersect(array $array, array ...$arrays): array {}
1756
1762
*/
1757
1763
function array_uintersect (array $ array , ...$ rest ): array {}
1758
1764
1759
- /** @refcount 1 */
1765
+ /**
1766
+ * @compile-time-eval
1767
+ * @refcount 1
1768
+ */
1760
1769
function array_intersect_assoc (array $ array , array ...$ arrays ): array {}
1761
1770
1762
1771
/**
@@ -1778,8 +1787,8 @@ function array_intersect_uassoc(array $array, ...$rest): array {}
1778
1787
function array_uintersect_uassoc (array $ array , ...$ rest ): array {}
1779
1788
1780
1789
/**
1781
- * @refcount 1
1782
1790
* @compile-time-eval
1791
+ * @refcount 1
1783
1792
*/
1784
1793
function array_diff_key (array $ array , array ...$ arrays ): array {}
1785
1794
@@ -1801,8 +1810,8 @@ function array_diff(array $array, array ...$arrays): array {}
1801
1810
function array_udiff (array $ array , ...$ rest ): array {}
1802
1811
1803
1812
/**
1804
- * @refcount 1
1805
1813
* @compile-time-eval
1814
+ * @refcount 1
1806
1815
*/
1807
1816
function array_diff_assoc (array $ array , array ...$ arrays ): array {}
1808
1817
@@ -1867,8 +1876,8 @@ function array_is_list(array $array): bool {}
1867
1876
/* base64.c */
1868
1877
1869
1878
/**
1870
- * @refcount 1
1871
1879
* @compile-time-eval
1880
+ * @refcount 1
1872
1881
*/
1873
1882
function base64_encode (string $ string ): string {}
1874
1883
@@ -2280,8 +2289,8 @@ function wordwrap(string $string, int $width = 75, string $break = "\n", bool $c
2280
2289
2281
2290
/**
2282
2291
* @return array<int, string>
2283
- * @refcount 1
2284
2292
* @compile-time-eval
2293
+ * @refcount 1
2285
2294
*/
2286
2295
function explode (string $ separator , string $ string , int $ limit = PHP_INT_MAX ): array {}
2287
2296
@@ -2958,42 +2967,61 @@ function mail(string $to, string $subject, string $message, array|string $additi
2958
2967
2959
2968
/* math.c */
2960
2969
2970
+ /** @compile-time-eval */
2961
2971
function abs (int |float $ num ): int |float {}
2962
2972
2973
+ /** @compile-time-eval */
2963
2974
function ceil (int |float $ num ): float {}
2964
2975
2976
+ /** @compile-time-eval */
2965
2977
function floor (int |float $ num ): float {}
2966
2978
2979
+ /** @compile-time-eval */
2967
2980
function round (int |float $ num , int $ precision = 0 , int $ mode = PHP_ROUND_HALF_UP ): float {}
2968
2981
2982
+ /** @compile-time-eval */
2969
2983
function sin (float $ num ): float {}
2970
2984
2985
+ /** @compile-time-eval */
2971
2986
function cos (float $ num ): float {}
2972
2987
2988
+ /** @compile-time-eval */
2973
2989
function tan (float $ num ): float {}
2974
2990
2991
+ /** @compile-time-eval */
2975
2992
function asin (float $ num ): float {}
2976
2993
2994
+ /** @compile-time-eval */
2977
2995
function acos (float $ num ): float {}
2978
2996
2997
+ /** @compile-time-eval */
2979
2998
function atan (float $ num ): float {}
2980
2999
3000
+ /** @compile-time-eval */
2981
3001
function atanh (float $ num ): float {}
2982
3002
3003
+ /** @compile-time-eval */
2983
3004
function atan2 (float $ y , float $ x ): float {}
2984
3005
3006
+ /** @compile-time-eval */
2985
3007
function sinh (float $ num ): float {}
2986
3008
3009
+ /** @compile-time-eval */
2987
3010
function cosh (float $ num ): float {}
2988
3011
3012
+ /** @compile-time-eval */
2989
3013
function tanh (float $ num ): float {}
2990
3014
3015
+ /** @compile-time-eval */
2991
3016
function asinh (float $ num ): float {}
2992
3017
3018
+ /** @compile-time-eval */
2993
3019
function acosh (float $ num ): float {}
2994
3020
3021
+ /** @compile-time-eval */
2995
3022
function expm1 (float $ num ): float {}
2996
3023
3024
+ /** @compile-time-eval */
2997
3025
function log1p (float $ num ): float {}
2998
3026
2999
3027
/** @compile-time-eval */
@@ -3014,18 +3042,25 @@ function is_infinite(float $num): bool {}
3014
3042
/** @compile-time-eval */
3015
3043
function pow (mixed $ num , mixed $ exponent ): int |float |object {}
3016
3044
3045
+ /** @compile-time-eval */
3017
3046
function exp (float $ num ): float {}
3018
3047
3048
+ /** @compile-time-eval */
3019
3049
function log (float $ num , float $ base = M_E ): float {}
3020
3050
3051
+ /** @compile-time-eval */
3021
3052
function log10 (float $ num ): float {}
3022
3053
3054
+ /** @compile-time-eval */
3023
3055
function sqrt (float $ num ): float {}
3024
3056
3057
+ /** @compile-time-eval */
3025
3058
function hypot (float $ x , float $ y ): float {}
3026
3059
3060
+ /** @compile-time-eval */
3027
3061
function deg2rad (float $ num ): float {}
3028
3062
3063
+ /** @compile-time-eval */
3029
3064
function rad2deg (float $ num ): float {}
3030
3065
3031
3066
/** @compile-time-eval */
@@ -3055,14 +3090,26 @@ function decoct(int $num): string {}
3055
3090
*/
3056
3091
function dechex (int $ num ): string {}
3057
3092
3058
- /** @refcount 1 */
3093
+ /**
3094
+ * @compile-time-eval
3095
+ * @refcount 1
3096
+ */
3059
3097
function base_convert (string $ num , int $ from_base , int $ to_base ): string {}
3060
3098
3061
- /** @refcount 1 */
3099
+ /**
3100
+ * @compile-time-eval
3101
+ * @refcount 1
3102
+ */
3062
3103
function number_format (float $ num , int $ decimals = 0 , ?string $ decimal_separator = ". " , ?string $ thousands_separator = ", " ): string {}
3063
3104
3105
+ /**
3106
+ * @compile-time-eval
3107
+ */
3064
3108
function fmod (float $ num1 , float $ num2 ): float {}
3065
3109
3110
+ /**
3111
+ * @compile-time-eval
3112
+ */
3066
3113
function fdiv (float $ num1 , float $ num2 ): float {}
3067
3114
3068
3115
/* microtime.c */
@@ -3088,11 +3135,15 @@ function getrusage(int $mode = 0): array|false {}
3088
3135
3089
3136
/* pack.c */
3090
3137
3091
- /** @refcount 1 */
3138
+ /**
3139
+ * @compile-time-eval
3140
+ * @refcount 1
3141
+ */
3092
3142
function pack (string $ format , mixed ...$ values ): string {}
3093
3143
3094
3144
/**
3095
3145
* @return array<int|string, mixed>|false
3146
+ * @compile-time-eval
3096
3147
* @refcount 1
3097
3148
*/
3098
3149
function unpack (string $ format , string $ string , int $ offset = 0 ): array |false {}
@@ -3358,29 +3409,59 @@ function socket_set_timeout($stream, int $seconds, int $microseconds = 0): bool
3358
3409
3359
3410
/* type.c */
3360
3411
3412
+ /**
3413
+ * @compile-time-eval
3414
+ */
3361
3415
function gettype (mixed $ value ): string {}
3362
3416
3417
+ /**
3418
+ * @compile-time-eval
3419
+ */
3363
3420
function get_debug_type (mixed $ value ): string {}
3364
3421
3365
3422
function settype (mixed &$ var , string $ type ): bool {}
3366
3423
3424
+ /**
3425
+ * @compile-time-eval
3426
+ */
3367
3427
function intval (mixed $ value , int $ base = 10 ): int {}
3368
3428
3429
+ /**
3430
+ * @compile-time-eval
3431
+ */
3369
3432
function floatval (mixed $ value ): float {}
3370
3433
3371
3434
/** @alias floatval */
3372
3435
function doubleval (mixed $ value ): float {}
3373
3436
3437
+ /**
3438
+ * @compile-time-eval
3439
+ */
3374
3440
function boolval (mixed $ value ): bool {}
3375
3441
3442
+ /**
3443
+ * @compile-time-eval
3444
+ */
3376
3445
function strval (mixed $ value ): string {}
3377
3446
3447
+ /**
3448
+ * @compile-time-eval
3449
+ */
3378
3450
function is_null (mixed $ value ): bool {}
3379
3451
3452
+ /**
3453
+ * @compile-time-eval
3454
+ */
3380
3455
function is_resource (mixed $ value ): bool {}
3381
3456
3457
+ /**
3458
+ * @compile-time-eval
3459
+ */
3382
3460
function is_bool (mixed $ value ): bool {}
3383
3461
3462
+ /**
3463
+ * @compile-time-eval
3464
+ */
3384
3465
function is_int (mixed $ value ): bool {}
3385
3466
3386
3467
/** @alias is_int */
@@ -3389,26 +3470,50 @@ function is_integer(mixed $value): bool {}
3389
3470
/** @alias is_int */
3390
3471
function is_long (mixed $ value ): bool {}
3391
3472
3473
+ /**
3474
+ * @compile-time-eval
3475
+ */
3392
3476
function is_float (mixed $ value ): bool {}
3393
3477
3394
3478
/** @alias is_float */
3395
3479
function is_double (mixed $ value ): bool {}
3396
3480
3481
+ /**
3482
+ * @compile-time-eval
3483
+ */
3397
3484
function is_numeric (mixed $ value ): bool {}
3398
3485
3486
+ /**
3487
+ * @compile-time-eval
3488
+ */
3399
3489
function is_string (mixed $ value ): bool {}
3400
3490
3491
+ /**
3492
+ * @compile-time-eval
3493
+ */
3401
3494
function is_array (mixed $ value ): bool {}
3402
3495
3496
+ /**
3497
+ * @compile-time-eval
3498
+ */
3403
3499
function is_object (mixed $ value ): bool {}
3404
3500
3501
+ /**
3502
+ * @compile-time-eval
3503
+ */
3405
3504
function is_scalar (mixed $ value ): bool {}
3406
3505
3407
3506
/** @param string $callable_name */
3408
3507
function is_callable (mixed $ value , bool $ syntax_only = false , &$ callable_name = null ): bool {}
3409
3508
3509
+ /**
3510
+ * @compile-time-eval
3511
+ */
3410
3512
function is_iterable (mixed $ value ): bool {}
3411
3513
3514
+ /**
3515
+ * @compile-time-eval
3516
+ */
3412
3517
function is_countable (mixed $ value ): bool {}
3413
3518
3414
3519
/* uniqid.c */
0 commit comments