php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22238 [win32] php_stream_read() + stream_select() clobbers read buffer for pipes
Submitted: 2003-02-15 21:57 UTC Modified: 2003-09-21 14:00 UTC
From: wez@php.net Assigned: wez (profile)
Status: Closed Package: Filesystem function related
PHP Version: 5.0.0b2-dev OS: win9x
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
17 + 27 = ?
Subscribe to this entry?

 
 [2003-02-15 21:57 UTC] 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).

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-25 05:42 UTC] wez@php.net
I must fix this before 4.3.2 goes gold.
 [2003-04-28 19:17 UTC] wez@php.net
Philip has documented this issue; suspending until php5.
 [2003-05-12 19:19 UTC] wez@php.net
Fixed in php 4.3.2-dev; still needs to be applied to php5.
 [2003-07-08 09:40 UTC] wez@php.net
opening so I can find it...
 [2003-09-21 14:00 UTC] wez@php.net
finally fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 09:01:30 2024 UTC