Date: Tue, 14 Dec 2004 09:56:27 GMT From: Markus Seifert <m.seifert@macnews.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/75046: pear & pear2 cmds will fail if libaries are already loaded Message-ID: <200412140956.iBE9uRGt076331@www.freebsd.org> Resent-Message-ID: <200412141000.iBEA0kZQ076615@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412140956.iBE9uRGt076331>