#22238 [Sus->Asn]: [win32] php_stream_read() + stream_select() clobbers read buffer for pipes

From: Date: Tue, 08 Jul 2003 14:40:26 +0000
Subject: #22238 [Sus->Asn]: [win32] php_stream_read() + stream_select() clobbers read buffer for pipes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-43446@lists.php.net to get a copy of this message
 ID:               22238
 Updated by:       wez@php.net
 Reported By:      wez@php.net
-Status:           Suspended
+Status:           Assigned
 Bug Type:         Filesystem function related
 Operating System: win9x
 PHP Version:      4CVS-2003-02-15 (stable)
 Assigned To:      wez
 New Comment:

opening so I can find it...


Previous Comments:
------------------------------------------------------------------------

[2003-05-12 19:19:03] wez@php.net

Fixed in php 4.3.2-dev; still needs to be applied to php5.

------------------------------------------------------------------------

[2003-04-28 19:17:04] wez@php.net

Philip has documented this issue; suspending until php5.

------------------------------------------------------------------------

[2003-04-25 05:42:33] wez@php.net

I must fix this before 4.3.2 goes gold.

------------------------------------------------------------------------

[2003-02-15 21:57:28] wez@php.net

stream_select() causes a buffer synchronization which will
clobber the read buffer of any stream that is marked
seekable.

This behaviour is intended, but under win9x, we cannot
always determine if a stream is a FIFO, and this can cause
data loss if the buffer size specified in
php_stream_read() is ever smaller than the amount of data
read in a single read operation (the excess data is lost
during the next stream_select() call).

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22238&edit=1



Thread (7 messages)

« previous php.bugs (#43446) next »