[PHP-DEV] PHP 4.0 Bug #4163: pg_ functions-Call to undefined function: () From: jmh3 <email protected>
Date: 04/17/00

From: jmh3 <email protected>
Operating system: Redhat 6.2
PHP version: 4.0 Release Candidate 1
PHP Bug Type: PostgreSQL related
Bug description: pg_ functions-Call to undefined function: ()

<?
    $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>
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.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>