Skip to content

Commit

Permalink
Merge pull request #12 from gslin/master
Browse files Browse the repository at this point in the history
There is an optional integer argument in get().
  • Loading branch information
lstrojny committed Aug 7, 2013
2 parents 90852ad + 082bc0d commit 651a0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mogilefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ PHP_METHOD(MogileFs, get)
char *key = NULL, *request, *response;
int key_len, pathcount = 2, request_len, response_len;

if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os",
if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os|l",
&object, mogilefs_ce,
&key, &key_len, &pathcount) == FAILURE) {
return;
Expand Down

0 comments on commit 651a0ce

Please sign in to comment.