cellog Tue Apr 25 02:43:47 2006 UTC
Modified files:
/pear-core/PEAR/PackageFile/v2 rw.php
/pear-core package-PEAR.xml package2.xml
Log:
* fix Bug #7419: Check inputs in PEAR_PackageFile_v2_rw
http://cvs.php.net/viewcvs.cgi/pear-core/PEAR/PackageFile/v2/rw.php?r1=1.15&r2=1.16&diff_format=u
Index: pear-core/PEAR/PackageFile/v2/rw.php
diff -u pear-core/PEAR/PackageFile/v2/rw.php:1.15
pear-core/PEAR/PackageFile/v2/rw.php:1.16
--- pear-core/PEAR/PackageFile/v2/rw.php:1.15 Sat Jan 28 17:35:11 2006
+++ pear-core/PEAR/PackageFile/v2/rw.php Tue Apr 25 02:43:47 2006
@@ -15,7 +15,7 @@
* @author Greg Beaver <cellog@xxxxxxx>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt PHP License 3.0
- * @version CVS: $Id: rw.php,v 1.15 2006/01/28 17:35:11 cellog Exp $
+ * @version CVS: $Id: rw.php,v 1.16 2006/04/25 02:43:47 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a8
*/
@@ -1000,6 +1000,9 @@
$recommended = false, $exclude = false,
$providesextension = false, $nodefault =
false)
{
+ if (!in_array($type, array('optional', 'required'), true)) {
+ $type = 'required';
+ }
$this->_isValid = 0;
$arr = array('optional', 'group');
if ($type != 'required') {
http://cvs.php.net/viewcvs.cgi/pear-core/package-PEAR.xml?r1=1.367&r2=1.368&diff_format=u
Index: pear-core/package-PEAR.xml
diff -u pear-core/package-PEAR.xml:1.367 pear-core/package-PEAR.xml:1.368
--- pear-core/package-PEAR.xml:1.367 Tue Apr 25 02:41:03 2006
+++ pear-core/package-PEAR.xml Tue Apr 25 02:43:47 2006
@@ -96,6 +96,7 @@
* fix Bug #7368: undefined function: getProvidesextension()
* fix Bug #7385: if post-install script or extension are present
and --packagingroot, fatal erro
+ * fix Bug #7419: Check inputs in PEAR_PackageFile_v2_rw
* implement Request #6614: use go-pear style dialogs in PEAR_Command_CLI by
default
* implement Request #6702: implement TAP output option for run-tests command
(as defined by http://perldoc.perl.org/Test/Harness/TAP.html)
http://cvs.php.net/viewcvs.cgi/pear-core/package2.xml?r1=1.261&r2=1.262&diff_format=u
Index: pear-core/package2.xml
diff -u pear-core/package2.xml:1.261 pear-core/package2.xml:1.262
--- pear-core/package2.xml:1.261 Tue Apr 25 02:41:03 2006
+++ pear-core/package2.xml Tue Apr 25 02:43:47 2006
@@ -101,6 +101,7 @@
* fix Bug #7368: undefined function: getProvidesextension()
* fix Bug #7385: if post-install script or extension are present
and --packagingroot, fatal erro
+ * fix Bug #7419: Check inputs in PEAR_PackageFile_v2_rw
* implement Request #6614: use go-pear style dialogs in PEAR_Command_CLI by
default
* implement Request #6702: implement TAP output option for run-tests command
(as defined by http://perldoc.perl.org/Test/Harness/TAP.html)
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|