Bug 75046

Summary: pear & pear2 cmds will fail if libaries are already loaded
Product: Ports & Packages Reporter: Markus Seifert <m.seifert>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Markus Seifert 2004-12-14 10:00:46 UTC
The pear and pear2 scripts will fail if 'prce.so' and/or 'xml.so' are already loaded. 
The Problem is in the patch for pearcmd (patch-scripts::pearcmd.php). No checking is done if the libaries are already loaded.

Fix: 

It should look something like this: 

if(!function_exists('preg_match')){
  @dl('pcre.so');	
}
 
if(!function_exists('utf8_decode')){
  @dl('xml.so');
}

Maybe with some additional Errorhandling if the Libaries do not exist :)
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-12-14 18:10:33 UTC
State Changed
From-To: open->feedback

To which port(s) does this PR apply?
Comment 2 Thierry Thomas freebsd_committer freebsd_triage 2004-12-14 18:42:47 UTC
State Changed
From-To: feedback->closed


Committed with PR ports/75063 from the maintainer. 
Thanks for your notification! 

Mark: this was devel/pear-PEAR and affected every pear-* ports.