X-Original-To: pgsql-php-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3AF4E9FB261 for ; Thu, 31 Aug 2006 03:26:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 18729-05 for ; Thu, 31 Aug 2006 03:25:59 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web55213.mail.re4.yahoo.com (web55213.mail.re4.yahoo.com [206.190.58.177]) by postgresql.org (Postfix) with SMTP id 09F999FB260 for ; Thu, 31 Aug 2006 03:25:58 -0300 (ADT) Received: (qmail 59951 invoked by uid 60001); 31 Aug 2006 06:25:58 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=pkjzGklZ0YUPfKpKKVb+SltBocAeguzM/yrn0Xql88C8YtJ/ckIhp2ftJvwkFAlmwwshhY+DOqipVg6TGB3iqj9aR6++/clbdF3m2e1o5+l4m9vO1/3V6oELa2hAy5JsNTX/XPUXcNxXuNB6xf5JB2v/AgOCMtmqjC8Fq4ZPEoA= ; Message-ID: <20060831062558.59948.qmail@web55213.mail.re4.yahoo.com> Received: from [72.134.0.217] by web55213.mail.re4.yahoo.com via HTTP; Wed, 30 Aug 2006 23:25:58 PDT Date: Wed, 30 Aug 2006 23:25:58 -0700 (PDT) From: babak badaei Reply-To: babak badaei Subject: Postgres 8.1.4 + PHP, hangs when querying more than 16 records! To: pgsql-php@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.355 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS X-Spam-Level: *** X-Archive-Number: 200608/18 X-Sequence-Number: 3589 OS: Fedora Core 5 PHP: PHP 5.1.4, PHP 5.1.6, and PHP 4.4.4 (compiled with --with-pgsql and install as binaries using YUM) Postgres 8.1.4 This scripts works: --------------------------------------------------------------------------------- \n"; while ($line = pg_fetch_array($result, null, PGSQL_ASSOC)) { echo "\t\n"; foreach ($line as $col_value) { echo "\t\t$col_value\n"; } echo "\t\n"; } echo "\n"; // Free resultset pg_free_result($result); // Closing connection pg_close($dbconn); ?> --------------------------------------------------------------------------------- This script hangs: ----------------------------------------------------------------------------------- \n"; while ($line = pg_fetch_array($result, null, PGSQL_ASSOC)) { echo "\t\n"; foreach ($line as $col_value) { echo "\t\t$col_value\n"; } echo "\t\n"; } echo "\n"; // Free resultset pg_free_result($result); // Closing connection pg_close($dbconn); ?> ------------------------------------------------------------------------------------- The only difference is that in the first we limit to 16 records, in the latter, to 17 (and greater hangs as well). I tried with three different versions of PHP, as mentioned above (PHP 5.1.4, 5.1.6, & 4.4.4) from both Apache and from the command line. Attempted few times each when compiled versions and binary distributions via yum. All behave the same way. All hang above 17 records. Take care! Babak.