cvs: pear /CodeGen_PECL/PECL/Dependency With.php /CodeGen_PECL/docs/examples with_1.xml
| From: | Hartmut Holzgraefe | Date: | Fri, 17 Feb 2006 11:38:37 +0000 |
| Subject: | cvs: pear /CodeGen_PECL/PECL/Dependency With.php /CodeGen_PECL/docs/examples with_1.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38311@lists.php.net to get a copy of this message | ||
hholzgra Fri Feb 17 11:38:37 2006 UTC
Added files:
/pear/CodeGen_PECL/docs/examples with_1.xml
Modified files:
/pear/CodeGen_PECL/PECL/Dependency With.php
Log:
name check for --with options fixed, test case added
http://cvs.php.net/viewcvs.cgi/pear/CodeGen_PECL/PECL/Dependency/With.php?r1=1.7&r2=1.8&diff_format=u
Index: pear/CodeGen_PECL/PECL/Dependency/With.php
diff -u pear/CodeGen_PECL/PECL/Dependency/With.php:1.7
pear/CodeGen_PECL/PECL/Dependency/With.php:1.8
--- pear/CodeGen_PECL/PECL/Dependency/With.php:1.7 Fri Feb 17 10:03:46 2006
+++ pear/CodeGen_PECL/PECL/Dependency/With.php Fri Feb 17 11:38:37 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: With.php,v 1.7 2006/02/17 10:03:46 hholzgra Exp $
+ * @version CVS: $Id: With.php,v 1.8 2006/02/17 11:38:37 hholzgra Exp $
* @link http://pear.php.net/package/CodeGen
*/
@@ -114,7 +114,7 @@
*/
function setName($name)
{
- if (!preg_match('|[a-z][a-z0-9-]*|i', $name)) {
+ if (!preg_match('|^[a-z][a-z0-9-]*$|i', $name)) {
return PEAR::raiseError("'$name' is not a valid --with option
name");
}
http://cvs.php.net/viewcvs.cgi/pear/CodeGen_PECL/docs/examples/with_1.xml?view=markup&rev=1.1
Index: pear/CodeGen_PECL/docs/examples/with_1.xml
+++ pear/CodeGen_PECL/docs/examples/with_1.xml
<?xml version="1.0" ?>
<extension name="with_1" version="1.0.0">
<deps lang="c">
<with name="libz" defaults='/usr:/usr/local'
testfile='include/zlib.h'>
</with>
</deps>
</extension>