Browse Source
A add much more useful select(2) implementation than is provided by
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.PHP-5
30 changed files with 225 additions and 43 deletions
-
2ext/curl/interface.c
-
2ext/curl/streams.c
-
2ext/fbsql/php_fbsql.c
-
2ext/ftp/ftp.c
-
2ext/hyperwave/hg_comm.c
-
2ext/hyperwave/hw.c
-
2ext/imap/php_imap.c
-
2ext/ldap/ldap.c
-
2ext/mcal/php_mcal.c
-
2ext/mysql/php_mysql.c
-
2ext/odbc/php_odbc.c
-
6ext/rpc/com/com_wrapper.c
-
2ext/snmp/snmp.c
-
2ext/standard/dns.c
-
162ext/standard/file.c
-
2ext/standard/fsock.c
-
4ext/standard/ftp_fopen_wrapper.c
-
4ext/standard/http_fopen_wrapper.c
-
2ext/standard/pack.c
-
2ext/zlib/zlib.c
-
4main/fopen_wrappers.c
-
2main/mergesort.c
-
2main/network.c
-
4main/php.h
-
2main/php_open_temporary_file.c
-
18main/streams.c
-
16run-tests.php
-
8win32/php4dllts.dsp
-
2win32/sendmail.c
-
2win32/time.h
Write
Preview
Loading…
Cancel
Save
Reference in new issue