php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4163 pg_ functions-Call to undefined function: ()
Submitted: 2000-04-17 14:06 UTC Modified: 2000-05-19 13:01 UTC
From: jmh3 at engr dot uark dot edu Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0 Release Candidate 1 OS: Redhat 6.2
Private report: No CVE-ID: None
 [2000-04-17 14:06 UTC] jmh3 at engr dot uark dot edu
<?
    $db_server          = "localhost";    //internet address of database
    $db_name            = "add_book";           //name of the database
    $db_login           = "jmh3";         //login name of the db owner
    $db_password        = "";             //password corresponding to login
    $connect_mb = pg_pconnect ("host=$db_server user=$db_login dbname=$db_name"); 
    echo "connect result:$connect_mb<BR>";
    echo "Connect string: host=$db_server user=$db_login dbname=$db_name<BR>"; 
    $pg_exec($connect_mb, "begin");
?>

this is the result (HTML) of the script:
connect result:1<BR>Connect string: host=localhost user=jmh3 dbname=add_book<BR><br>
<b>Fatal error</b>:  Call to undefined function:  () in <b>/home/jmh3/public_html/mb/test.php</b> on line <b>11</b><br>

other info:
PHP Version 4.0RC1
Configure command: './configure' '--with-apxs=/usr/sbin/apxs' '--with-mysql' '--with-pgsql=/usr/lib/pgsql/'

redhat 6.2
Apache/1.3.12


the only simular bug report i have found is this:
<A HREF=http://bugs.php.net/bugs.php3?id=2716>http://bugs.php.net/bugs.php3?id=2716</A> 
i recompiled/reconfigured from the tar.gz file and it didnt fix it

<snip>function:  () in</snip>
                this  ^^  is what i find odd. it seems to have forgotten the function.

i know in the example i am just beginning the transaction. i get the same result when i do a select or an insert.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-19 13:01 UTC] sterling at cvs dot php dot net
You have a $ before the function, there's your error.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 12:01:28 2024 UTC