X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 125935368F for ; Sun, 1 May 2005 11:12:11 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 78492-08 for ; Sun, 1 May 2005 14:12:01 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by svr1.postgresql.org (Postfix) with ESMTP id 9A96D535A6 for ; Sun, 1 May 2005 11:11:59 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 68so1337433wri for ; Sun, 01 May 2005 07:12:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=i4ybwRurmoUD6TSzt+sOhuOWVlBtrPq4vr5NrLDcYRvYy5Vsn3KdfqUY9uJ1z3hr3r5vkHiYyTohaI33b98v2/49034TcFfwUizFa/a/nXGVAjSHA+uNGChvTjeG48WWsXO9UyQLJIAYxPSCBhR4myh1T2fV6+BNvZeOujJdAaU= Received: by 10.54.122.13 with SMTP id u13mr137331wrc; Sun, 01 May 2005 07:12:04 -0700 (PDT) Received: by 10.54.30.31 with HTTP; Sun, 1 May 2005 07:12:04 -0700 (PDT) Message-ID: <7104a7370505010712245903b5@mail.gmail.com> Date: Sun, 1 May 2005 17:12:04 +0300 From: Volkan YAZICI Reply-To: Volkan YAZICI To: pgsql-php@postgresql.org Subject: Fwd: Bug #32774: stdin handling confusion in COPY In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.299 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200505/2 X-Sequence-Number: 3116 From: PHP Bug Database Date: Apr 20, 2005 1:13 AM Subject: Bug #32774: stdin handling confusion in COPY To: volkan.yazici@gmail.com From: volkan dot yazici at gmail dot com Operating system: Linux 2.6.11 PHP version: 5.0.3 PHP Bug Type: PostgreSQL related Bug description: stdin handling confusion in COPY Description: ------------ There seems to be a confusion in handling stdin between PostgreSQL and PHP. Reproduce code: --------------- /* * The same of this script * [http://yazicivo.fateback.com/example-copy.txt] written * in C (with same libpq calls) works fine. */ Expected result: ---------------- shell$ php example-copy.php Starting query... At last! shell$ _ Actual result: -------------- shell$ php example-copy.php Starting query... # It enters to an endless loop with a 100% CPU usage.