We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 614b976 commit 9e521b4Copy full SHA for 9e521b4
reset.c
@@ -7,11 +7,12 @@
7
PHP_FUNCTION(git_reset)
8
{
9
int result = 0, error = 0;
10
- zval *repo = NULL, *target = NULL, *reset_type = NULL;
+ zval *repo = NULL, *target = NULL;
11
php_git2_t *_repo = NULL, *_target = NULL;
12
+ long reset_type = 0;
13
14
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
- "rr<git_reset_t>", &repo, &target, &reset_type) == FAILURE) {
15
+ "rrl", &repo, &target, &reset_type) == FAILURE) {
16
return;
17
}
18
0 commit comments