We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbfb1b0 commit 41e0713Copy full SHA for 41e0713
1 file changed
frankenphp.c
@@ -514,6 +514,7 @@ PHP_FUNCTION(mercure_publish) {
514
zend_string *data = NULL, *id = NULL, *type = NULL;
515
zend_bool private = 0;
516
zend_long retry = 0;
517
+ bool retry_is_null = 1;
518
519
ZEND_PARSE_PARAMETERS_START(1, 6)
520
Z_PARAM_ZVAL(topics)
@@ -522,7 +523,7 @@ PHP_FUNCTION(mercure_publish) {
522
523
Z_PARAM_BOOL(private)
524
Z_PARAM_STR_OR_NULL(id)
525
Z_PARAM_STR_OR_NULL(type)
- Z_PARAM_LONG(retry)
526
+ Z_PARAM_LONG_OR_NULL(retry, retry_is_null)
527
ZEND_PARSE_PARAMETERS_END();
528
529
if (Z_TYPE_P(topics) != IS_ARRAY && Z_TYPE_P(topics) != IS_STRING) {
0 commit comments