Bug #1888: It crashes at various times when using pg_fetch_array

From: Date: Mon, 26 Jul 1999 23:58:41 +0000
Subject: Bug #1888: It crashes at various times when using pg_fetch_array
Groups: php.dev 
Request: Send a blank email to php-dev+get-9204@lists.php.net to get a copy of this message
From: sRp@portico.org Operating system: Linux 2.2.6 PHP version: 3.0.11 PHP Bug Type: PostgreSQL related Bug description: It crashes at various times when using pg_fetch_array I installed php3.0.11 with apache 1.3.6 and postgresql 6.5, 6.5.1, and 6.4.2. When i have code that looks like: <?php include("/home/srp/php/inc/print_array.inc"); $database = pg_Connect ("dbname=wwc user=postgres "); $res = pg_exec ($database, "select * from Groups"); print "*".$res."*"; print_array(pg_fetch_array($res,0)); ?> It will crash when it gets to the "pg_fetch_array" sometimes. It seems to be related to what type of columns are returned from the select query, but it isn't consistant between installations and the two computers i have tried it on. My compile options were something like (on the most minimal install i did): ./configure --enable-track-vars --with-pgsql --without-gd

« previous php.dev (#9204) next »