]> granicus.if.org Git - php/commitdiff
phar: fix offset*() prototypes
authorDylan T <odigiman@gmail.com>
Thu, 12 Dec 2019 11:13:35 +0000 (11:13 +0000)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 13 Dec 2019 09:41:50 +0000 (10:41 +0100)
ext/phar/phar_object.c

index 5eadcc91fa7fb89dd6dc45a5f975e297f5ebac6a..56e5fd442c7fd603485e6759ede3173095a8beba 100644 (file)
@@ -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)