Dmitry Stogov
99933df5e2
closeder/readdir/rewinddir must work only with directories
2008-06-11 09:01:56 +00:00
Greg Beaver
cac1fd72ea
fix erroneous use of php_resolve_path in _php_stream_wrapper_open_ex - this breaks require/include for all extensions that intercept zend_resolve_path
2008-04-28 22:39:54 +00:00
Greg Beaver
c46d651b3e
Fixed potentially confusing error message on failure when no errors are logged
2008-04-28 22:37:31 +00:00
Dmitry Stogov
862f9ee3d2
Added ability to use stream wrappers in include_path
2008-03-27 10:33:40 +00:00
Antony Dovgal
fc134fd6c5
MFH: disabled mmap() when copying files to memory
2008-03-24 16:28:35 +00:00
Greg Beaver
7c1952c863
MFH: clarify error message on why opening a stream wrapper failed for allow_url_include/allow_url_fopen, add test for allow_url_fopen
2008-01-12 15:50:57 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Antony Dovgal
2dab3c40fe
correct fix for bug #43522
2007-12-29 10:52:24 +00:00
Ilia Alshanetsky
b9e4413962
Fixed bug #43522 (stream_get_line() eats additional characters)
2007-12-10 14:16:58 +00:00
Marcus Boerger
6362476b20
MFH streams stuff
2007-11-06 11:02:36 +00:00
Jani Taskinen
45e96efd1d
MFH: This is what we get for not doing MFH..or MFB..a mess
2007-08-08 07:01:49 +00:00
Ilia Alshanetsky
0cb6dd5671
Fixed bug #42237 (stream_copy_to_stream returns invalid values for mmaped
...
streams).
2007-08-08 02:16:41 +00:00
Dmitry Stogov
5c28db4a9c
Fixed wrong warning
2007-07-11 14:33:30 +00:00
Dmitry Stogov
510bee631f
Fixed warning
2007-07-10 11:57:34 +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
eec0b67cd8
Fixed bug #41304 (compress.zlib temp files left)
2007-05-08 12:08:17 +00:00
Marcus Boerger
0ad927dbf2
- MFH A stream wrapper might only allow directory access
2007-03-03 19:01:34 +00:00
Antony Dovgal
4a95928d1d
MFH: implement PHP_STREAM_FLAG_NO_CLOSE and avoid hacks
2007-02-21 21:57:21 +00:00
Antony Dovgal
7ad1c3c5f2
MFH: add trailing '\0' to stream hashes
2007-01-15 17:07:08 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
557838efa4
Last set of zend_hash_init() optimizations
2006-10-03 19:51:01 +00:00
Antony Dovgal
99b133d7a7
MFH: fix double free(), add test
2006-09-15 07:27:22 +00:00
Antony Dovgal
9fa594c2dd
fix coverity issue #197
...
"I can't think of a reason to pass a NULL buf" (c) Wez
2006-09-10 13:01:37 +00:00
Ilia Alshanetsky
4427552b60
Fixed bug #38661 (mixed-case URL breaks url-wrappers).
2006-09-03 16:32:27 +00:00
Antony Dovgal
4902fc6c25
MFH: fix #38086 (stream_copy_to_stream() returns 0 when maxlen is bigger than the actual length)
...
add tests
2006-07-13 12:00:17 +00:00
Hannes Magnusson
c4154145df
MFH: plug memleak
2006-06-20 18:09:50 +00:00
Rasmus Lerdorf
6bfeea9eb9
MFH: Backported allow_url_include from HEAD. This directive allows
...
separate control of URL handling in includes/requires allowing sites to
enable allow_url_fopen without enabling remote includes.
2006-06-16 14:09:01 +00:00
Marcus Boerger
3577115118
- MFH Add strict compliant RFC2397 support (no //)
2006-05-14 18:40:12 +00:00
Wez Furlong
8663f1644d
fix for #37158
2006-04-22 17:17:40 +00:00
Michael Wallner
f7a6327728
- Fix reading stream filters never notified about EOF
2006-04-20 17:43:18 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
Antony Dovgal
248be6fcfc
fix #35781 (stream_filter_append() can cause segfault)
2005-12-23 14:32:11 +00:00
Antony Dovgal
aec3b4e73c
fix #35740 (memory leak when including a directory)
2005-12-20 09:47:57 +00:00
foobar
a3af52c11e
MFH: list_entry -> zend_rsrc_list_entry
2005-12-05 23:38:04 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
Dmitry Stogov
8b134356ef
Disabled search of recored separator outside of buffer
2005-06-01 15:11:44 +00:00
Antony Dovgal
d4db964aed
revert by Wez's request
2005-05-23 15:36:58 +00:00
Antony Dovgal
201fbc48e6
fix bug #32810 (fread after tmpfile() reads only 8192 bytes)
2005-05-23 11:51:53 +00:00
Antony Dovgal
d5bb03b11a
fix bugs #32742 (segmentation fault when the stream with a wrapper is not closed),
...
#32171 (Userspace stream wrapper crashes PHP)
2005-05-16 08:37:14 +00:00
Ilia Alshanetsky
edd4860674
Attempt to eliminate seek() prior to every write.
2005-04-29 19:01:33 +00:00
Antony Dovgal
2a83dbdf1c
revert the patch, the problem seems to be somewhere else
2005-04-11 15:19:27 +00:00
Sara Golemon
dc8823b565
Fold validation into an inlined function per Andi's suggestion
2005-04-09 19:36:49 +00:00
Antony Dovgal
e7a2efe053
do not try to read after EOF
2005-04-06 08:26:06 +00:00
Ilia Alshanetsky
d9aea604b3
Fixed bug #30362 (stream_get_line() not reading data correctly).
2005-04-05 03:00:04 +00:00
Sara Golemon
51852db0df
BugFix #32563
...
This could have been done in stream_wrapper_register()
without introducing the slight performance hit on
wrapper registration since anyone registering a wrapper
in an extension should know better.
The important thing is that since locate_wrapper makes
the assumption that all schemes will be /^[a-z0-9+.-]+$/i
Anything which registers them should make the same assumption as well.
2005-04-04 19:34:32 +00:00
Ilia Alshanetsky
c7b931d80d
Fixed bug #31515 (Improve performance of scandir() by factor of 10 or so).
2005-02-22 00:24:13 +00:00
Ilia Alshanetsky
d98a44d483
Fixed bug #29801 (Set limit on the size of mmapable data).
2004-11-15 23:43:12 +00:00
Rob Richards
d563495a24
add support for file://localhost/
...
support file:/// under windows again
2004-11-11 13:08:32 +00:00
Ilia Alshanetsky
5c04e39383
Fixed bug #30362 (stream_get_line() not handling end string correctly).
2004-10-11 18:31:49 +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