Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed May 7, 2022
1 parent e2da04f commit 6d11f5e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion yar.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Yar_Concurrent_Client {
/* methods */
public static function call(string $uri, string $method, ?array $arguments = NULL, ?callable $callback = NULL, ?callable $error_callback = NULL, ?array $options = NULL):null|int|bool {}

public static function loop(?callable $callback = NULL, ?callable $error_callback = NULL):?bool {}
public static function loop(?callable $callback = NULL, ?callable $error_callback = NULL, ?array $options = NULL):?bool {}

public static function reset():bool {}
}
Expand Down
3 changes: 2 additions & 1 deletion yar_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 7862b4a33978ffa7ac22f0da9ada3452bbd647a8 */
* Stub hash: f627ffbe0bc3ace1d517c32646e4a242a7e9d6dc */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Yar_Server___construct, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, executor, IS_OBJECT, 0)
Expand Down Expand Up @@ -41,6 +41,7 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Yar_Concurrent_Client_loop, 0, 0, _IS_BOOL, 1)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, callback, IS_CALLABLE, 1, "NULL")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error_callback, IS_CALLABLE, 1, "NULL")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 1, "NULL")
ZEND_END_ARG_INFO()

#define arginfo_class_Yar_Concurrent_Client_reset arginfo_class_Yar_Server_handle
Expand Down
4 changes: 0 additions & 4 deletions yar_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,8 @@ int php_yar_concurrent_client_handle(yar_call_data_t *entry) /* {{{ */ {

while ((entry)) {
if (entry->parameters == NULL) {
#if PHP_VERSION_ID < 70300
ALLOC_HASHTABLE(entry->parameters);
zend_hash_init(entry->parameters, 0, NULL, NULL, 0);
#else
entry->parameters = (zend_array*)&zend_empty_array;
#endif
}

transport = factory->init();
Expand Down
3 changes: 2 additions & 1 deletion yar_legacy_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 7862b4a33978ffa7ac22f0da9ada3452bbd647a8 */
* Stub hash: f627ffbe0bc3ace1d517c32646e4a242a7e9d6dc */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Yar_Server___construct, 0, 0, 1)
ZEND_ARG_INFO(0, executor)
Expand Down Expand Up @@ -41,6 +41,7 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Yar_Concurrent_Client_loop, 0, 0, 0)
ZEND_ARG_INFO(0, callback)
ZEND_ARG_INFO(0, error_callback)
ZEND_ARG_INFO(0, options)
ZEND_END_ARG_INFO()

#define arginfo_class_Yar_Concurrent_Client_reset arginfo_class_Yar_Server_handle
Expand Down

0 comments on commit 6d11f5e

Please sign in to comment.