Fwd: Bug #32774: stdin handling confusion in COPY
Fwd: Bug #32774: stdin handling confusion in COPY
От:
Volkan YAZICI <volkan.yazici@gmail.com>
Дата:
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.