Wez Furlong
f8486bc344
Fix for #19508 by poleson@verio.net.
2002-10-29 14:57:12 +00:00
Sebastian Bergmann
64a22c8a3e
Revert to 1.34.
2002-10-14 16:14:18 +00:00
Sebastian Bergmann
276b314ed3
Whitespace fixes.
2002-10-14 05:56:03 +00:00
Sebastian Bergmann
2e68e0beba
Fix Win32 build.
2002-10-14 05:54:15 +00:00
Wez Furlong
0bcd2ccb2c
A much better probable fix for #16114 .
2002-10-13 23:43:21 +00:00
Wez Furlong
70b796b143
(php_socket_errno) win32 errno compatible macro.
...
(php_socket_strerror) win32 compatible strerror replacement.
Add an E_NOTICE when a socket write fails.
2002-10-13 22:01:40 +00:00
Wez Furlong
9d5bab5a0d
EOF related fixes.
2002-10-05 10:59:35 +00:00
Wez Furlong
9509c20941
remove chunk size setting code (it's now in streams.c).
...
Move timeout setting code.
2002-09-28 22:12:23 +00:00
Wez Furlong
696e0a2301
Implement persistent streams. (for pfsockopen).
...
Juggle some includes/definitions.
Tidy up streams use in ext/standard/file.c
2002-09-25 15:25:12 +00:00
Wez Furlong
4d8a07d529
Implement read buffering in streams.
...
Eliminate similar code from network.c.
Implement fgets equivalent at the streams level, which can detect
the mac, dos and unix line endings and handle them appropriately.
The default behaviour is unix (and dos) line endings.
An ini option to control this behaviour will follow.
# Don't forget to make clean!
# I've done some testing but would appreciate feedback from
# people with scripts/extensions that seek around a lot.
2002-09-23 01:47:04 +00:00
Stefan Esser
714eb8069a
made new ssl activate function the default.
2002-09-12 21:52:09 +00:00
Stefan Esser
cbf5e3ca06
Added possibility to reuse an old SSL session id.
...
Ugly but needed for f.e.: debians ftpd-ssl
2002-09-08 22:26:11 +00:00
Sebastian Bergmann
e8b50bc834
Fix ZTS build.
2002-08-25 22:17:56 +00:00
Wez Furlong
5f9a5a7c8e
Remove php_stream_sock_set_blocking and replace with
...
php_stream_set_option which can be used in a similar way as ioctl()
to set options for streams.
Current options include buffering and blocking support.
o Buffer control is support for stdio based streams.
o Blocking/non-blocking is supported for stdio and socket based streams.
2002-08-19 22:59:10 +00:00
Jason Greene
a64eceef59
Switch streams socket abstraction to use a timeval structure instead of an
...
integer to allow subsecond timeouts.
This supports the previous behavior of fsockopen()
Fixes bug #16261
2002-07-22 18:46:26 +00:00
Jason Greene
217ef0d115
Fix feof() on win32
...
Bug #18436
2002-07-19 20:34:35 +00:00
Jason Greene
c6a36d585b
@Impelemented timeout functionality, and fixed error handling of fsockopen() on win32
...
Also fixed error handling on unix (micropatch)
Closes Bug #14740
2002-06-11 03:55:28 +00:00
Wez Furlong
14a3911866
fix for bug #16168
2002-03-19 17:49:02 +00:00
Wez Furlong
c9d5e13738
TSRMLS related work on streams, as discussed with Zeev.
...
# Should be the last "broad" commit for a while
# Don't forget to make clean ; make
2002-03-18 18:54:32 +00:00
Wez Furlong
d2d8762267
Streams now make more use of the memory manager, so tracking down
...
leaking streams should be easier.
# I hate these big commits
2002-03-17 22:50:59 +00:00
Wez Furlong
effa6e8daa
tidy up the headers (streams related)
2002-03-17 13:29:44 +00:00
Wez Furlong
436e339bc7
Fix for Bug #16121 : make unix socket names binary safe.
...
# Could be applied to 4.2 branch, but I don't have a working copy, and
# I don't think it's amazingly critical.
2002-03-17 13:19:27 +00:00
Wez Furlong
52982c422e
This should help with some build problems/warnings under win32.
...
Someone still needs to add the streams.c file to the MSVC
project/workspace though (there are so many that I don't really know
what I am doing :-).
2002-03-16 02:33:00 +00:00
Wez Furlong
28d6981152
more *'s
2002-03-16 01:58:13 +00:00
Wez Furlong
0f65280cb5
New PHP streams...
2002-03-15 21:03:08 +00:00
Sebastian Bergmann
90613d2282
Maintain headers.
2002-02-28 08:29:35 +00:00
Stig Venaas
9e420659ad
Added php_sockaddr_size() in network.c (and the header file). This is used
...
in ftp.c to make sure connect() and bind() is called with size argument
which is exactly the size of the relevant sockaddr_xx structure
2002-02-10 12:35:29 +00:00
Stig Venaas
a6ec8d37e6
hostconnect now divides the timeout with no. of addresses. If a connection
...
attempt times out, it goes on to the next. Unless each timeout would be
<5s. Added php_any_addr() that fills out the any address for IPv6 and IPv4.
2002-01-06 22:45:43 +00:00
Stig Venaas
6e1878b0fc
Added some consts for arguments in network.c declarations. Moved
...
php_sockaddr_storage to php_network.h and added check for struct
sockaddr_storage
2002-01-06 11:54:19 +00:00
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
Wez Furlong
77e7035421
Fixed Andi's build problem.
2001-05-05 22:36:26 +00:00
Wez Furlong
3ffb8e3800
Nuke buffering from php_streams, move connect_nonb() from fsock.c to network.c
...
and rename to php_connect_nonb().
Use php_connect_nonb() instead of connect() in php_hostconnect() -> timeouts
should now work in php_hostconnect().
sock streams abstraction now uses php_sockbuf as the "abstract" pointer.
2001-05-05 18:36:22 +00:00
Andi Gutmans
eb6ba01d1c
- Fix copyright notices with 2001
2001-02-26 06:11:02 +00:00
Zeev Suraski
eb32144902
- Remove track_vars - it is now always on
...
- Make the various $HTTP_*_VARS[] arrays be defined always,
even if they're empty
- Fix Win32 build and warnings
2000-09-05 19:06:29 +00:00
Stig Venaas
24633f5987
renamed hostconnect() to php_hostconnect()
2000-09-05 16:36:56 +00:00
Stig Venaas
f0962c33a1
Added timeout argument, but not used yet
2000-09-03 19:12:28 +00:00
Stig Venaas
ad95450fc4
To be included by code using functions in network.c
2000-09-03 09:33:14 +00:00