Date: Wed, 1 Dec 2004 16:33:01 GMT From: Wes Peters <wes@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/74589: php4-pear-DB should depend on php4-extensions Message-ID: <200412011633.iB1GX1aO009142@www.freebsd.org> Resent-Message-ID: <200412011640.iB1GeS5l080452@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 74589 >Category: ports >Synopsis: php4-pear-DB should depend on php4-extensions >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 01 16:40:28 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Wes Peters >Release: 5.3-RELEASE >Organization: FreeBSD >Environment: FreeBSD chang.softweyr.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Freshly installed apache, php4, and php4-pear-DB from ports. Attempting to connect to a database server using pear DB::connect results in: PHP Fatal error: Call to undefined function: preg_match() in /usr/local/share/pear/DB.php on line 604 in the apache error log. pear-DB requires php4-extensions. >How-To-Repeat: Try connecting to a database, as in: <?php require_once 'DB.php'; $dsn = 'pgsql://bugs:bugs@zaphod/bugs'; $options = array( 'debug' => 2, 'portability' => DB_PORTABILITY_ALL, ); print("<font color=\"blue\"><pre>"); var_dump($dsn); var_dump($options); print("</pre></font></br>"); $db =& DB::connect($dsn, $options); exit("<font color=\"red\">Connection to database failed:<br></font>"); if (DB::isError($db)) { print("<font color=\"red\">Connection to database failed:<br></font>"); die($db->getMessage()); } exit("<font color=\"green\">Connected to database<br></font>"); $db->disconnect(); ?> >Fix: Fix package dependencies? >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412011633.iB1GX1aO009142>