php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2242 db2 can't run
Submitted: 1999-09-06 00:30 UTC Modified: 1999-09-08 09:09 UTC
From: bate at china dot com Assigned:
Status: Closed Package: DBM/DBA related
PHP Version: 3.0 Latest CVS (05/09/1999) OS: freebsd
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bate at china dot com
New email:
PHP Version: OS:

 

 [1999-09-06 00:30 UTC] bate at china dot com
when my program run to 
$h = dba_open("test.db2", "c", "db2", 0666);
it reported Warning: no such handler: db2 in ......

my configure line:
./configure --with-mysql --with-db2 --with-apache=../apache_1.3.9 --enable-track-vars

My program:
<?php
error_reporting(15);

        $h = dba_open("test.db2", "c", "db2", 0666);
        if(!$h)
                die("cannot open db\n");
        for($i=0;$i<10;$i++)
            dba_replace("bate_$i", "$i", $h);
        dba_optimize($h);
        dba_close($h);
        $h = dba_open("test.db2", "r", "db2");
        if(!$h)
                die("cannot open db\n");
        for($key=dba_firstkey($h);$key != false;$key=dba_nextkey($h))
            echo "**".$key."**";
        dba_close($h);
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-08 09:09 UTC] sas at cvs dot php dot net
db2 needs to be installed (which isn't the case on FreeBSD by default), before you can use it.
 [2023-05-08 09:21 UTC] git@php.net
Automatic comment on behalf of kocsismate (author) and web-flow (committer)
Revision: https://github.com/php/doc-en/commit/2d77c9fe145f74663128006eb71662b0c44e8987
Log: Fix #2242 : Wrong parameters names for mysqli::real_connect (#2462)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC