Skip to content

phar: fix offset*() prototypes #5010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 4 additions & 4 deletions ext/phar/phar_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -3538,7 +3538,7 @@ PHP_METHOD(Phar, copy)
}
/* }}} */

/* {{{ proto int Phar::offsetExists(string entry)
/* {{{ proto bool Phar::offsetExists(string entry)
* determines whether a file exists in the phar
*/
PHP_METHOD(Phar, offsetExists)
Expand Down Expand Up @@ -3575,7 +3575,7 @@ PHP_METHOD(Phar, offsetExists)
}
/* }}} */

/* {{{ proto int Phar::offsetGet(string entry)
/* {{{ proto PharFileInfo Phar::offsetGet(string entry)
* get a PharFileInfo object for a specific file
*/
PHP_METHOD(Phar, offsetGet)
Expand Down Expand Up @@ -3755,7 +3755,7 @@ static void phar_mkdir(phar_archive_data **pphar, char *dirname, size_t dirname_
}
/* }}} */

/* {{{ proto int Phar::offsetSet(string entry, string value)
/* {{{ proto void Phar::offsetSet(string entry, string value)
* set the contents of an internal file to those of an external file
*/
PHP_METHOD(Phar, offsetSet)
Expand Down Expand Up @@ -3793,7 +3793,7 @@ PHP_METHOD(Phar, offsetSet)
}
/* }}} */

/* {{{ proto int Phar::offsetUnset(string entry)
/* {{{ proto bool Phar::offsetUnset(string entry)
* remove a file from a phar
*/
PHP_METHOD(Phar, offsetUnset)
Expand Down