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

Bug #6191 notice error with wrong 'pathtopackagefile' option
Submitted: 2005-12-08 13:34 UTC
From: farell Assigned: farell
Status: Closed Package: PEAR_PackageFileManager
PHP Version: 4.4.0 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 46 - 36 = ?

 
 [2005-12-08 13:34 UTC] farell
Description: ------------ With PFM 1.6.0a4 and PEAR 1.4.5, i've noticed that a check is missing for 'pathtopackagefile' option. You should implement the same existing test as for 'packagedirectory' option on lines 448-451. On my system, from current directory , there is no dir called 'Temp2' (i've wrote it to generate error). With the right directory ('..\..\Temp') all run fine (no notice error, of course). Test script: --------------- <?php require_once 'PEAR/PackageFileManager2.php'; $options = array( 'pathtopackagefile' => '..\..\Temp2', 'packagedirectory' => '.', 'filelistgenerator' => 'file', 'baseinstalldir' => 'HTML', 'changelogoldtonew' => false, 'simpleoutput' => true, ); $pkg = new PEAR_PackageFileManager2(); $pkg->setOptions($options); //... ?> Expected result: ---------------- No notice error message, but return a PEAR_Error if 'pathtopackagefile' directory is unknown on system. Actual result: -------------- Notice: Uninitialized string offset: -1 in [...]PEAR\PackageFileManager2.php on line 463

Comments

 [2006-01-08 15:10 UTC] farell
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.