Ilia Alshanetsky
8581c7328f
optimize zend_hash_init() with known hash table sizes.
2006-10-03 17:41:47 +00:00
Hannes Magnusson
281536e866
fix protos
2006-09-29 13:11:28 +00:00
Ilia Alshanetsky
f4a75d91d2
Fixed bug #38096 (large timeout values ignored on 32bit machines in
...
stream_socket_accept() and stream_socket_client()).
2006-09-11 14:52:21 +00:00
Antony Dovgal
c2a38c607b
more z/Z fixes
2006-08-31 14:41:24 +00:00
Antony Dovgal
54dba635a3
rephrase the error message ( fixes #38106 )
2006-07-14 20:44:04 +00:00
Antony Dovgal
69d6fe45c8
it's usually good idea to initialize variables
...
especially if you rely on their values
2006-07-12 12:38:49 +00:00
Hannes Magnusson
ec420c3df8
Updated protos & vim folding
2006-06-26 18:48:56 +00:00
Hannes Magnusson
223d122cae
MFH: use the ZEND_ACC_DEPRECATED flag rather than custom warnings
2006-06-26 16:33:39 +00:00
Antony Dovgal
9ea8d8dbf6
MFH: fix typo
2006-04-19 08:43:29 +00:00
Antony Dovgal
7c42ddb8e0
fix #37077 (stream_socket_server() leaks when the port is not allowed)
2006-04-14 10:00:55 +00:00
Antony Dovgal
bace0def1e
fix spelling in error messages:
...
greater/less thEn -> greater/less thAn
2006-04-03 09:14:33 +00:00
Ilia Alshanetsky
6d494f9725
Fixed bug #35900 (stream_select() should warning when tv_sec is negative).
2006-02-23 18:28:08 +00:00
Antony Dovgal
b90d985a23
MFH: fix #36242 (Possible memory corruption in stream_select())
2006-02-01 10:31:57 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
Ilia Alshanetsky
c933634253
Fixed crash inside stream_get_line() when length parameter equals 0.
2005-07-05 19:24:07 +00:00
Ilia Alshanetsky
bcd33d5f18
Added offset parameter to the stream_copy_to_stream() function.
2005-06-17 23:29:20 +00:00
Sara Golemon
29ede46872
BugFix #31137 stream_filter_remove() segfaults when stream already closed
2005-03-29 04:02:03 +00:00
Ilia Alshanetsky
5bd7be94a4
Fixed compiler warning.
2005-03-13 17:03:55 +00:00
Marcus Boerger
4e390892b7
- Do not touch return_valu's refcount or is_ref
2005-03-11 01:52:24 +00:00
foobar
58c6ed3583
CS fix
2005-01-15 04:50:26 +00:00
Dmitry Stogov
9de934c210
Fixed SIGSEGV in ext/standard/tests/network/tcp4loop.phpt and ext/standard/tests/network/unixloop.phpt
2005-01-14 09:02:02 +00:00
Wez Furlong
c4bc5b7f33
Fix #31408 : memory leak in stream_socket_recvfrom
2005-01-04 15:30:45 +00:00
Wez Furlong
843807c647
When a socket is non-blocking, don't block ssl enabled sockets.
...
Allow for non-blocking negotiation when calling stream_socket_enable_crypto().
That function will return the foolowing values:
false - negotiation failed
0 - try again when more data is available (only for non-blocking sockets)
true - ssl was enabled
2004-12-25 02:02:56 +00:00
Wez Furlong
e1f3beaa13
really don't blow up
2004-12-23 19:39:22 +00:00
Wez Furlong
d3d757d95a
don't crash...
2004-12-23 05:56:50 +00:00
Wez Furlong
419bbffeef
Make it really build...
2004-12-13 13:52:01 +00:00
Wez Furlong
d10b86f8f4
Add stream_socket_pair(), a streams based version of socketpair().
...
Modified patch from Vincent [six at t0x dot net]
2004-12-12 16:10:35 +00:00
Ilia Alshanetsky
2390ca71f1
MFH: Added optional offset parameter to stream_get_contents().
2004-10-12 23:25:24 +00:00
Ilia Alshanetsky
5c04e39383
Fixed bug #30362 (stream_get_line() not handling end string correctly).
2004-10-11 18:31:49 +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
34550382d8
Added stream_filter_remove() to cancel a stream filter.
...
Register filters as resources when
instantiated by stream_filter_(ap|pre)pend().
Export php_stream_filter_flush() internal function to wind buffered data
out of a particular filter until consumed by a later filter or sent to
stream->readbuffer or stream->ops->write()
2004-09-14 03:48:17 +00:00
Wez Furlong
d0ce6368b1
Avoid possible segfault when using stream_socket_client with bogus flags.
2004-08-06 14:08:17 +00:00
Wez Furlong
47e7fef08e
Allow win32 stuff to build non-zts.
...
Fix stream crypto func (again? didn't I already commit that?)
2004-07-31 17:28:27 +00:00
Ilia Alshanetsky
45ddc6a5cd
Better address availability check.
2004-07-28 23:34:27 +00:00
Ilia Alshanetsky
445daac3ab
Fixed possible crash in stream_socket_recvfrom() when length parameter has
...
a negative value.
2004-07-28 23:21:54 +00:00
Wez Furlong
17adf438a2
Added stream_context_get_default() which returns the default context option.
...
You may then set options that affect streams operations for the whole script.
Added stream_socket_enable_crypto() which allows you to turn on or off a crypto
layer (eg: SSL/TLS) on stream, if supported by the underlying transport.
Registered a bunch of constants for that.
2004-07-22 12:12:28 +00:00
Ard Biesheuvel
5232a5afea
64-bit bugsquash party
2004-06-16 23:57:25 +00:00
Ard Biesheuvel
81f05c18f5
Wordsize fixes
2004-02-25 20:16:27 +00:00
Ard Biesheuvel
b2bc520067
64-bit fixes
2004-02-23 16:26:34 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Wez Furlong
7a9cf22ed1
Probable fix for #26534
2003-12-05 20:25:14 +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
e1bdc33d18
More memory leak fixes for stream contexts.
2003-11-28 18:33:14 +00:00
Wez Furlong
43698d6dbb
initialize this one to be safe
2003-11-27 17:37:35 +00:00
Derick Rethans
3ab8d263b8
- Always store the URI path in the streams structure, and expose it with
...
stream_get_meta_data().
2003-11-03 14:12:46 +00:00
Wez Furlong
628afb40b6
Implement stream_get_contents, which is somewhat akin to file_get_contents,
...
except that it works on an already opened stream.
2003-10-08 10:07:25 +00:00
Jason Greene
7eea6525a7
Fix EINVAL errors for OS's (Solaris + BSD) that do not appreciate microseconds >= 1 second
...
Patch submitted from meebery@php.net
2003-07-22 07:20:55 +00:00
Wez Furlong
5ecc91c27d
Merge selectable descriptor casting from PHP_4_3 branch.
2003-06-28 11:24:47 +00:00
Sara Golemon
2e4ef86e10
MFB
...
Plug leak in context notifiers, implement notifier->dtor
2003-06-27 16:23:58 +00:00