]> granicus.if.org Git - php/commitdiff
Fix up the vim folds in phar_object.c and add a note that the two prototypes
authorAdam Harvey <aharvey@php.net>
Thu, 23 Sep 2010 04:41:14 +0000 (04:41 +0000)
committerAdam Harvey <aharvey@php.net>
Thu, 23 Sep 2010 04:41:14 +0000 (04:41 +0000)
before Phar::__construct() are actually valid and not a mistake, per bug
#52909.

ext/phar/phar_object.c

index 8d7223ff8714b5fb6419332606efbf478bc5d1b4..1c1ad0c58091637e47d02cabbb1f2cd972181a58 100755 (executable)
@@ -1251,8 +1251,12 @@ static spl_other_handler phar_spl_foreign_handler = {
 
 /* {{{ proto void Phar::__construct(string fname [, int flags [, string alias]])
  * Construct a Phar archive object
- * {{{ proto void PharData::__construct(string fname [[, int flags [, string alias]], int file format = Phar::TAR])
+ *
+ * proto void PharData::__construct(string fname [[, int flags [, string alias]], int file format = Phar::TAR])
  * Construct a PharData archive object
+ *
+ * This function is used as the constructor for both the Phar and PharData
+ * classes, hence the two prototypes above.
  */
 PHP_METHOD(Phar, __construct)
 {