PHP 4.0 Bug #7236: 1 is not a valid PostgreSQL link resource

From: Date: Mon, 16 Oct 2000 10:57:01 +0000
Subject: PHP 4.0 Bug #7236: 1 is not a valid PostgreSQL link resource
Groups: php.dev 
Request: Send a blank email to php-dev+get-35114@lists.php.net to get a copy of this message
From: chris@chrullrich.de Operating system: Linux x86 PHP version: 4.0.3pl1 PHP Bug Type: Scripting Engine problem Bug description: 1 is not a valid PostgreSQL link resource Since 4.0.3, PHP reports the error given in the bug description. I checked the returned value before: ---------------------------------------------------- $conn = pg_connect("dbname=" . VEDB_DBNAME); if (!$conn) { fatal_error("Could not connect to database", __FILE__, __LINE__); } $query = "select $field from $table where $field = '$_value'"; $res = pg_exec($conn, $query); ---------------------------------------------------- I can't really understand why that error occurs in the last line (pg_exec). configure line: ./configure' '--with-apxs=/usr/lib/apache/bin/apxs' '--without-mysql' '--with-config-file-path=/etc/php4' '--sysconfdir=/etc/php4' '--with-pgsql=/usr/lib/pgsql' '--with-gnu-ld' '--enable-magic-quotes' '--enable-bcmath' '--enable-calendar' '--with-gdbm' '--with-db3' '--with-gd=/usr' '--with-ttf' '--with-gettext' '--with-readline' '--with-sysvsem' '--with-sysvshm' '--enable-versioning' I use PostgreSQL 7.0.2. The very same script runs flawlessly with PHP 4.0.2. -- Edit Bug report at: http://bugs.php.net/?id=7236&edit=1

« previous php.dev (#35114) next »