cvs: pear /CodeGen_PECL/PECL ExtensionParser.php

From: Date: Thu, 23 Mar 2006 00:20:29 +0000
Subject: cvs: pear /CodeGen_PECL/PECL ExtensionParser.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39260@lists.php.net to get a copy of this message
hholzgra Thu Mar 23 00:20:29 2006 UTC Modified files: /pear/CodeGen_PECL/PECL ExtensionParser.php Log: - print warning when <header> or <lib> are used outside of <with> - attribute checking on <lib> http://cvs.php.net/viewcvs.cgi/pear/CodeGen_PECL/PECL/ExtensionParser.php?r1=1.38&r2=1.39&diff_format=u Index: pear/CodeGen_PECL/PECL/ExtensionParser.php diff -u pear/CodeGen_PECL/PECL/ExtensionParser.php:1.38 pear/CodeGen_PECL/PECL/ExtensionParser.php:1.39 --- pear/CodeGen_PECL/PECL/ExtensionParser.php:1.38 Wed Mar 22 06:51:15 2006 +++ pear/CodeGen_PECL/PECL/ExtensionParser.php Thu Mar 23 00:20:29 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.38 2006/03/22 06:51:15 hholzgra Exp $ + * @version CVS: $Id: ExtensionParser.php,v 1.39 2006/03/23 00:20:29 hholzgra Exp $ * @link http://pear.php.net/package/CodeGen */ @@ -523,6 +523,11 @@ function tagstart_deps_lib($attr) { + $err = $this->checkAttributes($attr, array("name", "platform", "path", "function")); + if (PEAR::isError($err)) { + return $err; + } + if (!isset($attr["name"])) { return PEAR::raiseError(""); } @@ -531,6 +536,8 @@ $attr["platform"] = "all"; } + error_log("Warning: Use of <header> tags out of <with> sections is deprecated"); + $lib = new CodeGen_PECL_Dependency_Lib($attr["name"], $attr["platform"]); if (isset($attr['path'])) { @@ -552,7 +559,9 @@ if (PEAR::isError($err)) { return $err; } - + + error_log("Warning: Use of <header> tags out of <with> sections is deprecated"); + // TODO check name $header = new CodeGen_PECL_Dependency_Header($attr["name"]);

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