]> granicus.if.org Git - php/commit
A add much more useful select(2) implementation than is provided by
authorWez Furlong <wez@php.net>
Sun, 16 Feb 2003 03:48:49 +0000 (03:48 +0000)
committerWez Furlong <wez@php.net>
Sun, 16 Feb 2003 03:48:49 +0000 (03:48 +0000)
commit0a18a9d744afb9d97d46bad1f40c11a047bad5df
tree993ffad34c5dc4fb92e92b559e13cc95f2f32145
parent5edec2a91005a4c378c56801585c89029926c5b3
A add much more useful select(2) implementation than is provided by
windows sockets.  The winsock implementation will only work with sockets;
our implementation works with sockets and file descriptors.
By association, stream_select() will now operate correctly with files, pipes and sockets.

This change required linking against the winsock2 library.  In terms of
compatibility, only older versions of windows 95 do not have winsock2
installed by default.  It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user.

Also, add a win32 compatible pipe test when opening a stream from a pipe.  This test will only work on NT, win2k and XP platforms.  Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered.  I will be working on a fix for this issue for win9x.
30 files changed:
ext/curl/interface.c
ext/curl/streams.c
ext/fbsql/php_fbsql.c
ext/ftp/ftp.c
ext/hyperwave/hg_comm.c
ext/hyperwave/hw.c
ext/imap/php_imap.c
ext/ldap/ldap.c
ext/mcal/php_mcal.c
ext/mysql/php_mysql.c
ext/odbc/php_odbc.c
ext/rpc/com/com_wrapper.c
ext/snmp/snmp.c
ext/standard/dns.c
ext/standard/file.c
ext/standard/fsock.c
ext/standard/ftp_fopen_wrapper.c
ext/standard/http_fopen_wrapper.c
ext/standard/pack.c
ext/zlib/zlib.c
main/fopen_wrappers.c
main/mergesort.c
main/network.c
main/php.h
main/php_open_temporary_file.c
main/streams.c
run-tests.php
win32/php4dllts.dsp
win32/sendmail.c
win32/time.h