Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.16

Bug #6510 status active of a maintainer cannot be change
Submitted: 2006-01-17 21:36 UTC
From: farell Assigned: cellog
Status: Closed Package: PEAR
PHP Version: 4.4.1 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  


 [2006-01-17 21:36 UTC] farell
Description: ------------ Even if this problem is related to PEAR_PackageFileManager, reason i've declared it under PEAR is due to share code between two packages. See file Id: rw.php,v 1.13 2006/01/06 04:47:37 cellog Exp "PEAR\PackageFile\v2\rw.php" method "updateMaintainer()" line 243 the active status cannot be change because param is missing 243: $this->addMaintainer($newrole, $handle, $name, $email); on my test script i've changed with success my first name, but not the active status. Laurent Test script: --------------- <?php require_once 'PEAR/PackageFileManager2.php'; PEAR::setErrorHandling(PEAR_ERROR_DIE); error_reporting(E_ALL); function varDump($var) { echo '<pre style="background-color:#eee">'; var_dump($var); echo '</pre>'; } $packagefile = 'D:/php/pear/PEAR_PackageFileManager/package.xml'; $optionsUpdate = array( 'packagedirectory' => dirname($packagefile), 'baseinstalldir' => 'PEAR' ); $pkg = &PEAR_PackageFileManager2::importFromPackageFile1($packagefile, $optionsUpdate); $users = $pkg->getMaintainers(true); varDump($users); $role = 'lead'; $farell = $users[$role][1]; extract($farell); $name = 'Laurent'; $active = 'no'; $pkg->updateMaintainer($role, $user, $name, $email, $active); $users = $pkg->getMaintainers(true); varDump($users); ?> Expected result: ---------------- have ability to change active status with updateMaintainer() method Actual result: -------------- only my first name was changed

Comments

 [2006-01-23 05:30 UTC] cellog
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.