Skip to content
Open
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
5 changes: 3 additions & 2 deletions beanstalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ bool cmd_put(bsc *svr, char *value, int value_len)
return true;
}

/* {{{ proto bool beanstalk_put(object beanstalk, string tube [, mixed var [, int flag [, int exptime ] ] ])
/* {{{ proto int beanstalk_put(object beanstalk, string tube [, mixed var [, int flag [, int exptime ] ] ])
Sets the value of an item. Item may exist or not */
PHP_FUNCTION(beanstalk_put)
{
Expand Down Expand Up @@ -639,9 +639,10 @@ PHP_FUNCTION(beanstalk_put)

if(cmd_put(svr, value, value_len) && g_put_info) {
if(BSC_PUT_RES_INSERTED == g_put_info->response.code) {
RETVAL_LONG(g_put_info->response.id);
g_put_info = NULL;
put_flag = false;
RETURN_TRUE;
return;
}
}

Expand Down