Browse files

Made "version" an actual optional parameter to set() (defaults to -1)

  • Loading branch information...
1 parent e8114d1 commit 808320072729d380c6776c0b41f2456a256a0868 jrosenberg committed May 21, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 php_zookeeper.c
View
4 php_zookeeper.c
@@ -365,13 +365,13 @@ static PHP_METHOD(Zookeeper, set)
{
char *path, *value;
int path_len, value_len;
- long version;
+ long version = -1;
zval *stat_info = NULL;
struct Stat stat, *stat_ptr = NULL;
int status = ZOK;
ZK_METHOD_INIT_VARS;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssl|z", &path, &path_len,
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|lz", &path, &path_len,
&value, &value_len, &version, &stat_info) == FAILURE) {
return;
}

0 comments on commit 8083200

Please sign in to comment.