cvs: pear /CodeGen_PECL/PECL ExtensionParser.php
| From: | Hartmut Holzgraefe | Date: | Mon, 06 Mar 2006 20:21:04 +0000 |
| Subject: | cvs: pear /CodeGen_PECL/PECL ExtensionParser.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38952@lists.php.net to get a copy of this message | ||
hholzgra Mon Mar 6 20:21:04 2006 UTC
Modified files:
/pear/CodeGen_PECL/PECL ExtensionParser.php
Log:
added more attribute checks
http://cvs.php.net/viewcvs.cgi/pear/CodeGen_PECL/PECL/ExtensionParser.php?r1=1.34&r2=1.35&diff_format=u
Index: pear/CodeGen_PECL/PECL/ExtensionParser.php
diff -u pear/CodeGen_PECL/PECL/ExtensionParser.php:1.34
pear/CodeGen_PECL/PECL/ExtensionParser.php:1.35
--- pear/CodeGen_PECL/PECL/ExtensionParser.php:1.34 Wed Feb 22 01:49:34 2006
+++ pear/CodeGen_PECL/PECL/ExtensionParser.php Mon Mar 6 20:21:04 2006
@@ -15,7 +15,7 @@
* @author Hartmut Holzgraefe <hartmut@php.net>
* @copyright 2005 Hartmut Holzgraefe
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: ExtensionParser.php,v 1.34 2006/02/22 01:49:34 hholzgra Exp $
+ * @version CVS: $Id: ExtensionParser.php,v 1.35 2006/03/06 20:21:04 hholzgra Exp $
* @link http://pear.php.net/package/CodeGen
*/
@@ -794,6 +794,11 @@
function tagstart_class($attr)
{
+ $err = $this->checkAttributes($attr, array("name", "extends",
"final", "abstract"));
+ if ($err) {
+ return $err;
+ }
+
$class = new CodeGen_PECL_Element_Class;
$this->pushHelper($class);
@@ -848,6 +853,8 @@
function tagstart_class_property($attr)
{
+ $err = $this->checkAttributes($attr, array("name", "type",
"value", "access", "static"));
+
$prop = new CodeGen_PECL_Element_Property;
if (!isset($attr["name"])) {