@@ -18,14 +18,23 @@ val KPHP_NATIVE_FUNCTIONS: SortedSet<String> = sortedSetOf(
1818
1919 // from functions.txt — addons to php standard library
2020 " warning" ,
21+ " require_lib" ,
22+ " critical_error" ,
2123 " register_kphp_on_warning_callback" ,
24+ " register_kphp_on_oom_callback" ,
2225 " kphp_backtrace" ,
2326 " kphp_set_context_on_error" ,
24- " require_lib " ,
27+ " kphp_get_runtime_config " ,
2528 " memory_get_total_usage" ,
2629 " memory_get_static_usage" ,
27- " memory_perform_defragmentation" ,
2830 " estimate_memory_usage" ,
31+ " memory_get_detailed_stats" ,
32+ " memory_get_allocations" ,
33+ " ffi_memcpy_string" ,
34+ " ffi_cast_ptr2addr" ,
35+ " ffi_cast_addr2ptr" ,
36+ " ffi_array_set" ,
37+ " ffi_array_get" ,
2938 " get_global_vars_memory_stats" ,
3039 " get_net_time" ,
3140 " get_script_time" ,
@@ -46,7 +55,11 @@ val KPHP_NATIVE_FUNCTIONS: SortedSet<String> = sortedSetOf(
4655 " array_keys_as_ints" ,
4756 " array_swap_int_keys" ,
4857 " array_reserve" ,
58+ " array_reserve_vector" ,
59+ " array_reserve_map_int_keys" ,
60+ " array_reserve_map_string_keys" ,
4961 " array_reserve_from" ,
62+ " array_unset" ,
5063 " array_is_vector" ,
5164 " array_filter_by_key" ,
5265 " vk_utf8_to_win" ,
@@ -61,31 +74,16 @@ val KPHP_NATIVE_FUNCTIONS: SortedSet<String> = sortedSetOf(
6174 " vk_sp_to_upper" ,
6275 " vk_sp_to_lower" ,
6376 " vk_sp_sort" ,
64- " vk_stats_merge_deviation" ,
65- " vk_stats_add_deviation" ,
66- " vk_stats_decompress_sample" ,
67- " vk_stats_merge_samples" ,
68- " vk_stats_parse_sample" ,
6977 " vk_stats_hll_merge" ,
7078 " vk_stats_hll_count" ,
7179 " vk_stats_hll_create" ,
7280 " vk_stats_hll_add" ,
7381 " vk_dot_product" ,
74- " vkext_full_version" ,
7582 " likely" ,
7683 " unlikely" ,
7784 " err" ,
7885 " fetch_int" ,
79- " fetch_UInt" ,
80- " fetch_Long" ,
81- " fetch_ULong" ,
82- " fetch_unsigned_int" ,
8386 " fetch_long" ,
84- " fetch_unsigned_long" ,
85- " fetch_unsigned_int_hex" ,
86- " fetch_unsigned_long_hex" ,
87- " fetch_unsigned_int_str" ,
88- " fetch_unsigned_long_str" ,
8987 " fetch_double" ,
9088 " fetch_string" ,
9189 " fetch_string_as_int" ,
@@ -100,23 +98,13 @@ val KPHP_NATIVE_FUNCTIONS: SortedSet<String> = sortedSetOf(
10098 " store_start_gzip_pack" ,
10199 " store_finish_gzip_pack" ,
102100 " rpc_clean" ,
103- " rpc_get_clean" ,
104- " rpc_get_contents" ,
105101 " store_header" ,
106102 " store_error" ,
107103 " store_raw" ,
108104 " store_int" ,
109- " store_UInt" ,
110- " store_Long" ,
111- " store_ULong" ,
112- " store_unsigned_int" ,
113105 " store_long" ,
114- " store_unsigned_long" ,
115- " store_unsigned_int_hex" ,
116- " store_unsigned_long_hex" ,
117106 " store_double" ,
118107 " store_string" ,
119- " store_many" ,
120108 " store_finish" ,
121109 " rpc_send" ,
122110 " rpc_send_noflush" ,
@@ -129,16 +117,8 @@ val KPHP_NATIVE_FUNCTIONS: SortedSet<String> = sortedSetOf(
129117 " rpc_queue_empty" ,
130118 " rpc_queue_next" ,
131119 " rpc_queue_next_synchronously" ,
120+ " rpc_wait_concurrently" ,
132121 " rpc_wait" ,
133- " rpc_wait_multiple" ,
134- " rpc_mc_get" ,
135- " rpc_mc_multiget" ,
136- " rpc_mc_delete" ,
137- " rpc_mc_add" ,
138- " rpc_mc_set" ,
139- " rpc_mc_replace" ,
140- " rpc_mc_decrement" ,
141- " rpc_mc_increment" ,
142122 " rpc_mc_parse_raw_wildcard_with_flags_to_array" ,
143123 " rpc_tl_query_one" ,
144124 " rpc_tl_query" ,
@@ -153,7 +133,6 @@ val KPHP_NATIVE_FUNCTIONS: SortedSet<String> = sortedSetOf(
153133 " typed_rpc_tl_query_result_synchronously" ,
154134 " rpc_server_fetch_request" ,
155135 " rpc_server_store_response" ,
156- " rpc_get_last_send_error" ,
157136 " set_fail_rpc_on_int32_overflow" ,
158137 " wait_multi" ,
159138 " wait_synchronously" ,
@@ -167,49 +146,7 @@ val KPHP_NATIVE_FUNCTIONS: SortedSet<String> = sortedSetOf(
167146 " sched_yield_sleep" ,
168147 " get_running_fork_id" ,
169148 " get_fork_stat" ,
170- " labs" ,
171- " ldiv" ,
172- " lmod" ,
173- " lpow" ,
174- " ladd" ,
175- " lsub" ,
176- " lmul" ,
177- " lshl" ,
178- " lshr" ,
179- " lnot" ,
180- " lor" ,
181- " land" ,
182- " lxor" ,
183- " lcomp" ,
184- " new_Long" ,
185- " uldiv" ,
186- " ulmod" ,
187- " ulpow" ,
188- " uladd" ,
189- " ulsub" ,
190- " ulmul" ,
191- " ulshl" ,
192- " ulshr" ,
193- " ulnot" ,
194- " ulor" ,
195- " uland" ,
196- " ulxor" ,
197- " ulcomp" ,
198- " new_ULong" ,
199- " uidiv" ,
200- " uimod" ,
201- " uipow" ,
202- " uiadd" ,
203- " uisub" ,
204- " uimul" ,
205- " uishl" ,
206- " uishr" ,
207- " uinot" ,
208- " uior" ,
209- " uiand" ,
210- " uixor" ,
211- " uicomp" ,
212- " new_UInt" ,
149+ " get_hash_of_class" ,
213150 " instance_cast" ,
214151 " instance_to_array" ,
215152 " instance_cache_fetch" ,
@@ -228,4 +165,35 @@ val KPHP_NATIVE_FUNCTIONS: SortedSet<String> = sortedSetOf(
228165 " profiler_is_enabled" ,
229166 " profiler_set_function_label" ,
230167 " profiler_set_log_suffix" ,
168+ " to_array_debug" ,
169+ " classof" ,
170+ " curl_exec_concurrently" ,
171+ " is_kphp_job_workers_enabled" ,
172+ " get_job_workers_number" ,
173+ " get_webserver_stats" ,
174+ " get_kphp_cluster_name" ,
175+ " kphp_job_worker_start" ,
176+ " kphp_job_worker_start_multi" ,
177+ " kphp_job_worker_start_no_reply" ,
178+ " kphp_job_worker_fetch_request" ,
179+ " kphp_job_worker_store_response" ,
180+ " thread_pool_test_load" ,
181+ " vk_dot_product" ,
182+ " send_http_103_early_hints" ,
183+ " dbg_echo" ,
184+ " crc32_file" ,
185+ " ip2ulong" ,
186+ " thread_pool_test_load" ,
187+ " fetch_int" ,
188+ " fetch_long" ,
189+ " fetch_double" ,
190+ " fetch_float" ,
191+ " fetch_string" ,
192+ " fetch_string_as_int" ,
193+ " fetch_memcache_value" ,
194+ " fetch_eof" ,
195+ " fetch_end" ,
196+ " fetch_lookup_int" ,
197+ " fetch_lookup_data" ,
198+ " rpc_parse"
231199)
0 commit comments