summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan T <odigiman@gmail.com>2019-12-12 11:13:35 +0000
committerChristoph M. Becker <cmbecker69@gmx.de>2019-12-13 10:41:50 +0100
commit01875e8b26788f97232f45cf1d22e6570ad7dd75 (patch)
treeae441f90076f95625c2515659771bb60f2b74b78
parente699b2865fcc9b039ec5b52295e31572990674e0 (diff)
downloadphp-git-01875e8b26788f97232f45cf1d22e6570ad7dd75.tar.gz
phar: fix offset*() prototypes
-rw-r--r--ext/phar/phar_object.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c
index 5eadcc91fa..56e5fd442c 100644
--- a/ext/phar/phar_object.c
+++ b/ext/phar/phar_object.c
@@ -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)
@@ -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)
@@ -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)
@@ -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)