ports/75046: pear & pear2 cmds will fail if libaries are already loaded

Markus Seifert m.seifert at macnews.de
Tue Dec 14 10:00:47 UTC 2004


>Number:         75046
>Category:       ports
>Synopsis:       pear & pear2 cmds will fail if libaries are already loaded
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 14 10:00:46 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Markus Seifert
>Release:        5.3
>Organization:
macnews.de
>Environment:
>Description:
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.

>How-To-Repeat:

>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 :)


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list