cvs: pear /CodeGen_PECL/PECL ExtensionParser.php

From: Date: Tue, 05 Sep 2006 08:31:08 +0000
Subject: cvs: pear /CodeGen_PECL/PECL ExtensionParser.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-41982@lists.php.net to get a copy of this message
hholzgra Tue Sep 5 08:31:08 2006 UTC Modified files: /pear/CodeGen_PECL/PECL ExtensionParser.php Log: added support for static methods (must have overlooked that somehow) http://cvs.php.net/viewvc.cgi/pear/CodeGen_PECL/PECL/ExtensionParser.php?r1=1.59&r2=1.60&diff_format=u Index: pear/CodeGen_PECL/PECL/ExtensionParser.php diff -u pear/CodeGen_PECL/PECL/ExtensionParser.php:1.59 pear/CodeGen_PECL/PECL/ExtensionParser.php:1.60 --- pear/CodeGen_PECL/PECL/ExtensionParser.php:1.59 Tue Aug 22 16:25:50 2006 +++ pear/CodeGen_PECL/PECL/ExtensionParser.php Tue Sep 5 08:31:08 2006 @@ -15,7 +15,7 @@ * @author Hartmut Holzgraefe <hartmut@php.net> * @copyright 2005, 2006 Hartmut Holzgraefe * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: ExtensionParser.php,v 1.59 2006/08/22 16:25:50 hholzgra Exp $ + * @version CVS: $Id: ExtensionParser.php,v 1.60 2006/09/05 08:31:08 hholzgra Exp $ * @link http://pear.php.net/package/CodeGen */ @@ -1052,7 +1052,7 @@ function tagstart_class_function($attr) { - $err = $this->checkAttributes($attr, array("name", "access", "abstract", "final", "procedural", "if")); + $err = $this->checkAttributes($attr, array("name", "access", "static", "abstract", "final", "procedural", "if")); if (PEAR::isError($err)) { return $err; } @@ -1077,6 +1077,12 @@ } } + if (isset($attr["static"]) && $this->toBool($attr["static"])) { + $err = $method->isStatic(); + if (PEAR::isError($err)) { + return $err; + } + } if (isset($attr["abstract"]) && $this->toBool($attr["abstract"])) { $err = $method->isAbstract(); if (PEAR::isError($err)) {

« previous php.pear.cvs (#41982) next »