Skip to content

Commit 01875e8

Browse files
dktappscmb69
authored andcommitted
phar: fix offset*() prototypes
1 parent e699b28 commit 01875e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/phar/phar_object.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3538,7 +3538,7 @@ PHP_METHOD(Phar, copy)
35383538
}
35393539
/* }}} */
35403540

3541-
/* {{{ proto int Phar::offsetExists(string entry)
3541+
/* {{{ proto bool Phar::offsetExists(string entry)
35423542
* determines whether a file exists in the phar
35433543
*/
35443544
PHP_METHOD(Phar, offsetExists)
@@ -3575,7 +3575,7 @@ PHP_METHOD(Phar, offsetExists)
35753575
}
35763576
/* }}} */
35773577

3578-
/* {{{ proto int Phar::offsetGet(string entry)
3578+
/* {{{ proto PharFileInfo Phar::offsetGet(string entry)
35793579
* get a PharFileInfo object for a specific file
35803580
*/
35813581
PHP_METHOD(Phar, offsetGet)
@@ -3755,7 +3755,7 @@ static void phar_mkdir(phar_archive_data **pphar, char *dirname, size_t dirname_
37553755
}
37563756
/* }}} */
37573757

3758-
/* {{{ proto int Phar::offsetSet(string entry, string value)
3758+
/* {{{ proto void Phar::offsetSet(string entry, string value)
37593759
* set the contents of an internal file to those of an external file
37603760
*/
37613761
PHP_METHOD(Phar, offsetSet)
@@ -3793,7 +3793,7 @@ PHP_METHOD(Phar, offsetSet)
37933793
}
37943794
/* }}} */
37953795

3796-
/* {{{ proto int Phar::offsetUnset(string entry)
3796+
/* {{{ proto bool Phar::offsetUnset(string entry)
37973797
* remove a file from a phar
37983798
*/
37993799
PHP_METHOD(Phar, offsetUnset)

0 commit comments

Comments
 (0)