ports/74589: php4-pear-DB should depend on php4-extensions

Wes Peters wes at FreeBSD.org
Wed Dec 1 16:40:28 UTC 2004


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



More information about the freebsd-ports-bugs mailing list