Commit Graph

240 Commits

Author SHA1 Message Date
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
78bab4d9b3 - forgot to commit to HEAD 2008-07-21 13:00:27 +00:00
Jani Taskinen
1a58013044 - Fixed bug #44127 (UNIX abstract namespace socket connect does not work) 2008-07-16 14:08:04 +00:00
Felipe Pena
543de6df1c MFB:
- Added arginfo
- Removed #include "zend_arg_defs.c" (it's unnecessary now)
2008-07-04 14:10:24 +00:00
Nuno Lopes
1dc0e94e0f MFB: remove unused PHP_EXTNAME_API macros.
#in preparation for the gcc 4 visibility patch
2008-01-03 16:18:29 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Antony Dovgal
ca861401ff fix proto 2007-09-26 10:54:56 +00:00
Jani Taskinen
3d06e9db7f - Added missing constants for MSG_EOR and MSG_EOF 2007-07-24 11:33:47 +00:00
Jani Taskinen
5dceae6f8f - Removed useless file 2007-07-24 11:15:29 +00:00
Jani Taskinen
993f77ef9d - Fixed bug #21197 (socket_read() outputs error with PHP_NORMAL_READ) 2007-07-22 23:00:14 +00:00
Jani Taskinen
08b144f722 WS fix 2007-07-22 22:46:52 +00:00
Jani Taskinen
4e921b7ea6 MFB: sockepair is not always available 2007-07-22 22:17:51 +00:00
Ilia Alshanetsky
3821f0c45a MFB 2007-05-28 23:33:13 +00:00
Ilia Alshanetsky
de573ba7ff MFB 2007-05-28 23:14:57 +00:00
Martin Kraemer
e46b1b3747 Typo 2007-03-14 09:49:58 +00:00
Antony Dovgal
5a24d1db6c zerofill socket structs 2007-02-25 22:58:57 +00:00
Antony Dovgal
d8179ac018 fix tests 2007-02-12 14:48:52 +00:00
Hannes Magnusson
ea12069755 MFB: Add missing ifdefs 2007-01-10 21:26:09 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal
d312d33f46 minor improvements 2006-12-28 14:17:09 +00:00
Antony Dovgal
e185df5995 fix CS, add missing folding markers
mark Unicode safe functions as they are
2006-12-25 19:34:00 +00:00
Hannes Magnusson
176b72284c Error message clean up
(patch by Matt W (php_lists -AT- realpain.com))
2006-10-08 13:34:24 +00:00
Ilia Alshanetsky
15e5832c26 MFB: Last set of zend_hash_init() optimizations 2006-10-03 19:52:34 +00:00
Antony Dovgal
a10691e3b9 last portion of z/Z fixes 2006-08-31 16:14:43 +00:00
Antony Dovgal
6636721261 improve checks and fix #38251 2006-07-30 11:54:11 +00:00
Dmitry Stogov
943960c324 Added automatic module globals management 2006-06-13 13:12:20 +00:00
Pierre Joye
056c98d9f0 - MFB: revert leak fix, something else went wrong 2006-04-07 14:05:21 +00:00
Pierre Joye
a29f09dcc5 - MFB: fix leak when an error occured in socket_read, free tmpbuf 2006-04-07 13:34:53 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
foobar
a208d9a966 - Nuke php3 legacy 2005-12-06 02:28:26 +00:00
Ilia Alshanetsky
08c824bbea MFB51: Fixed bug #35062 (socket_read() produces warnings on non blocking
sockets).
2005-12-04 17:31:40 +00:00
Antony Dovgal
58c6a0da27 yet another compile warning 2005-12-03 23:24:07 +00:00
Antony Dovgal
14bdb93d6b MF51: fix #35490 (socket_sendto() unable to handle IPv6 addresses) 2005-12-01 14:03:51 +00:00
Michael Wallner
36d3c24c6e - MFB44: #34851 (SO_RECVTIMEO and SO_SNDTIMEO socket options expect integer
parameter on Windows)
2005-11-03 15:01:31 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Antony Dovgal
cee979d5a9 fix #33019 (socket errors cause memory leaks in php_strerror())
patch by jwozniak23 at poczta dot onet dot pl
2005-05-12 16:26:26 +00:00
foobar
b6b3659224 - More sock->error resets 2005-02-14 23:44:23 +00:00
foobar
a66b053ac9 - Removed duplicate error + reset error in new sockets 2005-02-14 22:16:06 +00:00
foobar
28f0397803 Nuke unused code 2005-02-14 08:21:34 +00:00
foobar
30deea4d30 Remove unused set_h_errno 2005-02-12 18:14:03 +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
Sara Golemon
3838fb99de MFB: Missing length limit parameter. 2004-06-07 05:00:37 +00:00
Derick Rethans
17df3ec21b - Fixed bug #28523 (Typo in ext/sockets/sockets.c) 2004-05-26 06:53:04 +00:00
Edin Kadribasic
3b64493a3d No length parameter -> estrdup() 2004-05-18 10:49:06 +00:00
Ilia Alshanetsky
bb88a86240 Do not allocate error buffer at the start of every request. 2004-05-16 15:34:53 +00:00
Hartmut Holzgraefe
cc0894b788 more visa to sibira ;) 2004-03-24 18:43:23 +00:00
Jan Lehnardt
4ed1b9a193 - improve error message 2004-03-14 17:53:28 +00:00
Melvyn Sopacua
21ecfd57fd Fix a typo, dating back from 1.145. 2004-03-14 11:42:17 +00:00
Ilia Alshanetsky
337b23bd93 Fixed bug #21760 (Use of uninitialized pointer inside php_read()).
Fixed 3 possible crashes due to integer overflow or invalid user input
inside the sockets extension.
2004-02-25 22:10:09 +00:00