Skip to content

Commit 995ac4f

Browse files
committed
minifix
1 parent 03c1fa9 commit 995ac4f

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

builtin-functions/kphp-light/stdlib/rpc.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ function rpc_queue_push ($queue_id ::: int, $request_id ::: int) ::: void;
113113

114114
function rpc_queue_empty ($queue_id ::: int) ::: bool;
115115

116+
function rpc_parse ($data) ::: bool;
117+
116118
/** @kphp-extern-func-info interruptible */
117119
function rpc_queue_next ($queue_id ::: int, $timeout ::: float = -1.0) ::: int | false;
118120

@@ -121,8 +123,6 @@ function rpc_queue_next ($queue_id ::: int, $timeout ::: float = -1.0) ::: int |
121123
/** @kphp-extern-func-info interruptible stub generation-required */
122124
function new_rpc_connection ($str ::: string, $port ::: int, $actor_id ::: mixed = 0, $timeout ::: float = 0.3, $connect_timeout ::: float = 0.3, $reconnect_timeout ::: float = 17.0) ::: \RpcConnection; // TODO: make actor_id int
123125

124-
function rpc_parse ($data) ::: bool;
125-
126126
/** @kphp-extern-func-info interruptible stub generation-required */
127127
function store_finish() ::: bool;
128128

builtin-functions/kphp-light/stdlib/serialize-functions.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,15 @@ function msgpack_serialize($v ::: mixed) ::: string | null;
4848

4949
function msgpack_deserialize($v ::: string) ::: mixed;
5050

51+
/** @kphp-extern-func-info can_throw */
52+
function instance_serialize_safe(object $instance) ::: string;
53+
54+
/** @kphp-extern-func-info cpp_template_call can_throw */
55+
function instance_deserialize_safe($serialized ::: string, $to_type ::: string) ::: instance<^2>;
56+
5157
// ===== UNSUPPORTED =====
5258

5359
/** @kphp-extern-func-info can_throw stub generation-required */
5460
function msgpack_serialize_safe($v ::: mixed) ::: string;
5561
/** @kphp-extern-func-info can_throw stub generation-required */
5662
function msgpack_deserialize_safe($v ::: string) ::: mixed;
57-
/** @kphp-extern-func-info can_throw */
58-
function instance_serialize_safe(object $instance) ::: string;
59-
/** @kphp-extern-func-info cpp_template_call can_throw */
60-
function instance_deserialize_safe($serialized ::: string, $to_type ::: string) ::: instance<^2>;

builtin-functions/kphp-light/stdlib/server-functions.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ function memory_get_usage ($real_usage ::: bool = false) ::: int;
6565

6666
function memory_get_peak_usage ($real_usage ::: bool = false) ::: int;
6767

68+
function setlocale ($category ::: int, $locale ::: string) ::: string | false;
69+
70+
function memory_get_detailed_stats() ::: int[];
71+
6872
// ===== UNSUPPORTED =====
6973

7074
/** @kphp-extern-func-info stub */
@@ -95,8 +99,6 @@ function memory_get_total_usage() ::: int;
9599
/** @kphp-extern-func-info stub generation-required */
96100
function memory_get_static_usage() ::: int;
97101

98-
function memory_get_detailed_stats() ::: int[];
99-
100102
/** @kphp-extern-func-info stub */
101103
function kphp_extended_instance_cache_metrics_init(callable(string $key):string $normalization_function) ::: void;
102104

@@ -118,8 +120,6 @@ define('LC_NUMERIC', 1);
118120
define('LC_TIME', 2);
119121
define('LC_MESSAGES', 5);
120122

121-
function setlocale ($category ::: int, $locale ::: string) ::: string | false;
122-
123123
function debug_backtrace() ::: string[][];
124124

125125
/** @kphp-extern-func-info stub generation-required */

0 commit comments

Comments
 (0)