10000 Fix Arginfo / zpp mismatch for DUMP command by yatsukhnenko · Pull Request #2471 · phpredis/phpredis · GitHub
[go: up one dir, main page]

Skip to content

Fix Arginfo / zpp mismatch for DUMP command #2471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion redis.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ public function discard(): Redis|bool;
* $binary = $redis->dump('zset');
* $redis->restore('new-zset', 0, $binary);
*/
public function dump(string $key): Redis|string;
public function dump(string $key): Redis|string|false;

/**
* Have Redis repeat back an arbitrary string to the client.
Expand Down
6 changes: 4 additions & 2 deletions redis_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: d6839707b66ecf4460374deea10a528bf0c5ea41 */
* Stub hash: 21f3434814d9fa077a9a81c8ba114c3faf079e85 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Redis___construct, 0, 0, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 1, "null")
Expand Down Expand Up @@ -179,7 +179,9 @@ ZEND_END_ARG_INFO()

#define arginfo_class_Redis_discard arginfo_class_Redis_bgSave

#define arginfo_class_Redis_dump arginfo_class_Redis_debug
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_Redis_dump, 0, 1, Redis, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_class_Redis_echo, 0, 1, Redis, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
Expand Down
2 changes: 1 addition & 1 deletion redis_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: d6839707b66ecf4460374deea10a528bf0c5ea41 */
* Stub hash: 21f3434814d9fa077a9a81c8ba114c3faf079e85 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Redis___construct, 0, 0, 0)
ZEND_ARG_INFO(0, options)
Expand Down
0