Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Mikko Koppanen
207d9133ca
Changed stream_resolve_include_path to use zend_resolve_path
...
backported stream_resolve_include_path to PHP 5.3
backported stream_resolve_include_path test to PHP 5.3
2009-12-24 13:12:03 +00:00
Felipe Pena
a94558c855
- Added MAKE_COPY_ZVAL(ppzv, pzv) macro
2009-12-08 01:57:37 +00:00
Felipe Pena
d744463d33
- CS
2009-08-03 15:58:18 +00:00
Felipe Pena
80ec45861a
- Improved. No ugly copy. (Tony)
2009-08-03 13:26:15 +00:00
Felipe Pena
1648ab5750
- Re-fix stream_is_local() memory leaks
2009-08-03 13:16:24 +00:00
Antony Dovgal
24086c42b6
revert bogus memleak fix causing Valgrind to scream
2009-08-03 08:45:28 +00:00
Felipe Pena
99013d8321
- Fixed memleak in stream_is_local()
2009-07-29 19:09:17 +00:00
Arnaud Le Blanc
8ea9eb8560
MFH: Better fix for #47997
2009-04-19 17:10:35 +00:00
Arnaud Le Blanc
14c717f449
Fixed bug #47997 (stream_copy_to_stream returns 1 on empty streams)
2009-04-19 13:46:47 +00:00
Kalle Sommer Nielsen
73b17408fb
MFH: Windows support for stream_socket_pair(), by moving the socketpair() implementation from ext/sockets to win32/
2009-01-23 15:49:49 +00:00
Arnaud Le Blanc
61ae60f805
MFH: Fixed error conditions handling in stream_filter_append()
2009-01-08 17:01:58 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Arnaud Le Blanc
3b9fce6246
MFH: Fix proto line
2008-11-14 06:00:48 +00:00
Arnaud Le Blanc
06119f4748
MFH: Added stream_context_get_params()
2008-11-13 05:47:47 +00:00
Arnaud Le Blanc
55ccadecbe
MDH: Avoids fclose() from complaining that stream_socket_pair() streams
...
have not been closed
2008-11-04 16:46:03 +00:00
Arnaud Le Blanc
55e7b35e6b
MFH: Fixed bug #46024 (stream_select() doesn't return the correct number)
2008-11-04 00:42:41 +00:00
Felipe Pena
16bce25da2
- Fixed memory leak when using offset out of range. (php_stream_copy_to_mem returns 0, but the empty string is alloced)
2008-10-30 15:53:18 +00:00
Felipe Pena
1eb552a712
- Fix the fix
...
- Improved test
2008-10-30 14:34:25 +00:00
Felipe Pena
bfa5404e90
- MFH: Fixed bug #46426 (3rd parameter offset of stream_get_contents not works for "0")
2008-10-30 10:09:22 +00:00
Felipe Pena
5d804d163a
- MFH: Fixed bug #46388 (stream_notification_callback inside of object destroys object variables)
2008-10-26 13:25:06 +00:00
Arnaud Le Blanc
d69dfa4b9f
MFH: initialize optional vars
2008-10-21 22:08:38 +00:00
Antony Dovgal
97e667d250
MFH: use HashPosition to prevent race condition in multithreaded env
2008-10-02 08:46:16 +00:00
Felipe Pena
0c745885ca
- Fixed some wrong format parameters
2008-09-08 01:33:08 +00:00
Hannes Magnusson
eea3226d58
MFH: [DOC] Added stream_context_set_default() function. (Davey Shafik)
2008-08-16 10:57:56 +00:00
Antony Dovgal
28a22396d4
MFH: invert the logics - FLAG_FCLOSE -> FLAG_NO_FCLOSE
2008-07-23 11:25:14 +00:00
Felipe Pena
fdfbfb96a1
- MFH: Fixed bug #44246 (closedir() accepts a file resource opened by fopen())
2008-07-22 14:09:24 +00:00
Jani Taskinen
1ca8daaafb
MFH: sync
2008-07-21 16:16:30 +00:00
Antony Dovgal
cf7e15c3a0
MFH: manage references of stream context properly
2008-07-11 10:25:15 +00:00
Felipe Pena
5fe790929d
- New parameter parsing API
2008-06-20 14:53:57 +00:00
Etienne Kneuss
94697acff9
MFH: Fix protos
2008-05-04 21:17:33 +00:00
Hannes Magnusson
ef78497f78
MFH: Add "params" argument to stream_context_create()
2008-04-14 08:15:11 +00:00
Antony Dovgal
eb5afe0eda
fix ZTS build and sync with HEAD
2008-04-14 07:49:00 +00:00
Hannes Magnusson
5fcd85240b
Fixed bug#44712 (stream_context_set_params segfaults on invalid arguments)
2008-04-13 22:35:27 +00:00
Felipe Pena
84a8bb038a
MFH: New way for check void parameters
2008-03-10 22:15:36 +00:00
Ilia Alshanetsky
c466f232bc
Fixed bug #44028 (crash inside stream_socket_enable_crypto() when enabling
...
encryption without crypto type)
2008-02-03 16:14:16 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Stanislav Malyshev
794217eb2f
fix proto
2007-11-23 19:48:56 +00:00
Johannes Schlüter
cbf466a953
MFH: Add stream_supports_lock() function (Benjamin Schulz)
2007-11-20 22:17:01 +00:00
Dmitry Stogov
1ab7f533ff
Fixed bug #43216 (stream_is_local() returns false on "file://")
2007-11-08 13:29:25 +00:00
Jani Taskinen
3db75dcb84
MFH
2007-10-10 12:58:41 +00:00
Jani Taskinen
13ea8ee05a
MFH
2007-10-10 12:44:46 +00:00
Yiduo (David) Wang
4b4d634cb9
MFH: Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:22:07 +00:00
Jani Taskinen
6723ed1db3
MFH: Nuked ending dots from error messages
2007-09-30 05:49:45 +00:00
Dmitry Stogov
539f67ed8f
Added ability to create local or remote (URL) user streams
...
Local user streams must not be able to open(), URLs if allow_url_include is off
Implemented new function stream_is_local()
[
- stream_wrapper_register() extended with additional optional argument "flags"
of type long. This time only one flag is implemented
- STREAM_IS_URL, that means that userstream wrapper is remote (URL).
By default stream is local.
- stream_is_local() is a new function that accepts stream and tell if this
stream is local or remote (URL)
]
2007-07-09 17:27:24 +00:00
Dmitry Stogov
4de76f02ea
Fixed 64-bit support
2007-04-09 15:38:58 +00:00
Antony Dovgal
ebd7c13e8b
MFH: fix #40168
2007-01-19 14:50:11 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Antony Dovgal
6ac8ffdfea
MFH
2006-12-25 22:12:46 +00:00
Dmitry Stogov
03312cc0d9
Added function stream_socket_shutdown(). It is a wraper for system shutdown() function, that shut downs part of a full-duplex connection
2006-12-19 08:58:58 +00:00
Sara Golemon
adf31588d2
MFH(r-1.96) Bugfix#38649 Optional param not initialized
2006-10-11 23:22:45 +00:00
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