Commit Graph

147 Commits

Author SHA1 Message Date
Ilia Alshanetsky
2c2f45a059 Fixed bug #48805 (IPv6 socket transport is not working). 2009-09-30 20:48:41 +00:00
Sriram Natarajan
00406ac1ae - Fixed bug #49447 (php engine need to correctly check for socket API
return status on windows). (Sriram Natarajan)
2009-09-04 07:59:48 +00:00
Antony Dovgal
c82c26b6c9 use correct function 2009-05-04 14:44:24 +00:00
Antony Dovgal
39773487a3 don't segfault on bindto == NULL 2009-05-04 14:25:04 +00:00
Ilia Alshanetsky
0b6fba9a6b MFB: Fixed bug #48131 (Don't try to bind ipv4 addresses to ipv6 ips via
bindto)
2009-05-04 13:12:53 +00:00
Marcus Boerger
d4f5b3f0a9 - This is PHP 6 - if this ... ever gets out 2009-03-10 23:40:06 +00:00
Felipe Pena
aff9765952 - Windows part 2009-01-03 00:05:53 +00:00
Felipe Pena
7debfa2421 - Errr, rule nº 1: be portable :) 2009-01-02 21:42:25 +00:00
Felipe Pena
05e0fb8179 - Working with unintialized errno (#46917, noticed by Jost Boekemeier) 2009-01-02 21:26:42 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Arnaud Le Blanc
e84add8470 initialize memory 2008-11-04 20:40:04 +00:00
Felipe Pena
66f75b6e8e - Fixed bug #46082 (stream_set_blocking() can cause a crash in some circumstances) 2008-10-24 10:44:19 +00:00
Pierre Joye
adfa214688 - drop bindlib usage on windows
- inet_pton, inet_ntop and inet_aton are always available (VC9 uses the CRT implementation, VC6 our own)
2008-08-21 23:37:40 +00:00
Jani Taskinen
c3e18660ec - Silence "unused variable" warning when ip6 support is disabled 2008-07-11 13:11:37 +00:00
Antony Dovgal
ec101c1274 fix segfault - error_string may be NULL, in this case we have to follow the old behavior 2008-03-11 10:26:51 +00:00
Andrey Hristov
af5a93e552 char **error_message was passed but not used. This causes problems in cases
of getaddrinfo() failure, because the upper layers don't get the error.
  initialize a variable because we were reading initialized in case of error.
2008-03-10 19:55:43 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Rob Richards
5f7ece064d fix non ipv6 enabled win build 2007-11-06 10:56:53 +00:00
Edin Kadribasic
8b3bfa7cf7 MFB: Fix build 2007-10-12 08:08:02 +00:00
Elizabeth Marie Smith
9e0894fa21 MFB 2007-10-10 23:23:54 +00:00
Jani Taskinen
11a1fa5b92 - Use correct macro name 2007-07-18 09:04:37 +00:00
Jani Taskinen
497218eedf ws fix 2007-07-17 13:29:25 +00:00
Antony Dovgal
8c64f4279b use closesocket() on Win32 and close() on *nix 2007-01-11 15:51:29 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Sara Golemon
1ce3ba599b Bug #38687 - sockaddr local storage insufficient for all sock families 2006-09-11 19:18:06 +00:00
Nuno Lopes
c2b1be3549 MFB5.2: const keywording 2006-07-01 11:50:52 +00:00
Antony Dovgal
a4f9c8efc2 MFB: first check stream for NULL, then dereference 2006-03-19 22:34:26 +00:00
Andi Gutmans
1efe984d08 - Get rid of using ENFORCE_SAFE_MODE. 2006-02-19 04:29:42 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Antony Dovgal
79d649e173 fix memleak when connection fails (and we still keep trying) 2005-06-20 23:16:27 +00:00
Ilia Alshanetsky
aa52c68a7a bzero > memset 2005-06-14 13:09:04 +00:00
Ilia Alshanetsky
b36d4ae02c Added bindto socket context option. 2005-06-14 02:39:42 +00:00
Anantha Kesari H Y
1d7a8a9e69 removed unwanted NEW_LIBC checks 2004-10-06 13:22:21 +00:00
Wez Furlong
ff4e970fb1 Make new poll stuff work on win32 (and still be safe on unix) 2004-09-17 14:36:55 +00:00
Wez Furlong
99e290f882 Fix for Bug #24189: possibly unsafe select(2) usage.
We avoid the problem by using poll(2).

On systems without poll(2) (older bsd-ish systems, and win32), we emulate
poll(2) using select(2) and check for valid descriptors before attempting
to access them via the descriptor sets.

If an out-of-range descriptor is detected, an E_WARNING is raised suggesting
that PHP should be recompiled with a larger FD_SETSIZE (and also with a
suggested value).

Most uses of select(2) in the source are to poll a single descriptor, so
a couple of handy wrapper functions have been added to make this easier.

A configure option --enable-fd-setsize has been added to both the unix and
win32 builds; on unix we default to 16384 and on windows we default to 256.
Windows FD_SETSIZE imposes a limit on the maximum number of descriptors that
can be select()ed at once, whereas the unix FD_SETSIZE limit is based on the
highest numbered descriptor; 256 should be plenty for PHP scripts under windows
(the default OS setting is 64).

The win32 specific parts are untested; will do that now.
2004-09-17 12:44:56 +00:00
Wez Furlong
f1072c2ae9 Ensure that port numbers get set in the peer/socket name functions.
(duh!)
2004-07-28 23:30:23 +00:00
Wez Furlong
637c424d64 Fix #29431: crash when parsing an invalid network address 2004-07-28 23:15:25 +00:00
Sara Golemon
3feae65f70 BugFix: Copy/Paste mistake referenced undefined variable on platforms without gettimeofday() 2004-04-09 19:18:59 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Wez Furlong
dbb152b96a Detect and enable IPv6 support under win32.
The ws2tcpip.h header links to IPv6 functions dynamically
and the generated binary will run on win98 and later.
2003-12-06 00:00:31 +00:00
Wez Furlong
5e4eac57bd Export these so that ftp extension can be build as shared ext. 2003-12-02 23:13:43 +00:00
Ilia Alshanetsky
c344754d48 Removed unused variables. 2003-11-30 19:43:30 +00:00
Wez Furlong
37f135ceef Add stream_socket_sendto and stream_socket_recvfrom which work very much
like sendto() and recvfrom() syscalls.
2003-11-29 21:46:50 +00:00
Ilia Alshanetsky
93bcd55eaf emalloc -> safe_emalloc 2003-08-12 00:58:52 +00:00
Marcus Boerger
3466a48add Initialize this variable to 0 as suggested by sara 2003-08-10 21:30:36 +00:00
Wez Furlong
8dfe385215 Merge getaddrinfo() tidy-up from PHP_4_3 branch. 2003-06-28 11:12:48 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Ilia Alshanetsky
56ba9b4ae5 emalloc -> safe_emalloc 2003-05-13 01:57:54 +00:00
Marcus Boerger
d0fbdef419 fix warnings - one left 2003-03-08 16:53:54 +00:00