cvs: pear /CodeGen_PECL/PECL ExtensionParser.php

From: Date: Thu, 23 Mar 2006 00:23:24 +0000
Subject: cvs: pear /CodeGen_PECL/PECL ExtensionParser.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39261@lists.php.net to get a copy of this message
hholzgra Thu Mar 23 00:23:24 2006 UTC Modified files: /pear/CodeGen_PECL/PECL ExtensionParser.php Log: even more attribute checking http://cvs.php.net/viewcvs.cgi/pear/CodeGen_PECL/PECL/ExtensionParser.php?r1=1.39&r2=1.40&diff_format=u Index: pear/CodeGen_PECL/PECL/ExtensionParser.php diff -u pear/CodeGen_PECL/PECL/ExtensionParser.php:1.39 pear/CodeGen_PECL/PECL/ExtensionParser.php:1.40 --- pear/CodeGen_PECL/PECL/ExtensionParser.php:1.39 Thu Mar 23 00:20:29 2006 +++ pear/CodeGen_PECL/PECL/ExtensionParser.php Thu Mar 23 00:23:24 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.39 2006/03/23 00:20:29 hholzgra Exp $ + * @version CVS: $Id: ExtensionParser.php,v 1.40 2006/03/23 00:23:24 hholzgra Exp $ * @link http://pear.php.net/package/CodeGen */ @@ -638,6 +638,11 @@ function tagstart_deps_with_header($attr) { + $err = $this->checkAttributes($attr, array("name", "prepend", "path")); + if (PEAR::isError($err)) { + return $err; + } + // TODO check name $header = new CodeGen_PECL_Dependency_Header($attr["name"]); @@ -654,6 +659,15 @@ function tagstart_deps_with_lib($attr) { + $err = $this->checkAttributes($attr, array("name", "platform", "path", "function")); + if (PEAR::isError($err)) { + return $err; + } + + if (!isset($attr["name"])) { + return PEAR::raiseError(""); + } + if (!isset($attr["platform"])) { $attr["platform"] = "all"; }

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