Lars Strojny
29f49d2ded
If a wrapper could not be found it is either a typo or a configuration issue. But in both cases it is critical enough to warn the user.
2008-12-14 16:25:37 +00:00
Dmitry Stogov
7d4fd3fd38
Fixed bug #46409 (__invoke method called outside of object context when using array_map)
2008-11-27 19:01:23 +00:00
Arnaud Le Blanc
dffdb48c3b
MFH: Fixed bug #46673 (stream_lock call with wrong paramater)
2008-11-26 04:19:20 +00:00
David Soria Parra
a9282f72a8
MFH: Revert fix for 43782, as it caused problems.
2008-11-24 15:36:47 +00:00
Arnaud Le Blanc
c6e1b8bc67
MFH: Added stream_cast() and stream_set_options() to user-space stream
...
wrappers, allowing stream_select(), stream_set_blocking(),
stream_set_timeout() and stream_set_write_buffer() to work with user-space
stream wrappers.
Will document.
2008-11-15 12:52:13 +00:00
Arnaud Le Blanc
e13a4238e5
MFH: Fixed stream_get_contents() when using $maxlength and socket is not
...
closed. indeyets@php.net on #46049 .
2008-11-11 01:55:51 +00:00
Arnaud Le Blanc
d441b5db5b
MFH: Fixed stream_get_line() to behave as documented on non-blocking
...
streams
2008-11-04 17:05:55 +00:00
Arnaud Le Blanc
8e220d99df
MFH: Fixed bug #44607 (stream_get_line unable to correctly identify the
...
"ending" in the stream content)
2008-11-03 23:29:17 +00:00
Arnaud Le Blanc
de29f4161f
MFH: Fixed bug #45303 (Opening php:// wrapper in append mode results
...
in a warning)
2008-11-03 16:58:53 +00:00
Arnaud Le Blanc
0a2bfc7968
MFH: Fixed bug #43353 (wrong detection of 'data' wrapper causes notice)
2008-11-03 15:47:31 +00:00
Nuno Lopes
8a77e55566
clean some dead code (with static analysis help)
2008-09-23 15:18:26 +00:00
Greg Beaver
17cfd5f24e
MF52 fix Bug #46147 : after stream seek, appending stream filter reads incorrect data
2008-09-22 01:26:14 +00:00
David Soria Parra
9f68483734
MFH: Fixed bug #43782 (feof() does not detect timeout on socket)
2008-08-26 16:06:36 +00:00
Arnaud Le Blanc
c93fbf629b
MFH:
...
Added clear_realpath_cache and filename parameters to clearstatcache() (Jani,
Arnaud)
[DOC] clearstatcache() now defaults to not affect the realpath cache.
clearstatcache() now takes two optionnal parameters, clear_realpath_cache to
clear the realpath cache (defaults to false), and filename to clear only the
given filename from the cache.
2008-08-07 09:25:33 +00:00
Antony Dovgal
93908474ad
MFH: increase context refcount before open() to avoid crash when open() fails and destroys the context
2008-08-06 09:03:48 +00:00
Dmitry Stogov
691d4a6999
Fixed uninitialised data
2008-07-25 08:23:07 +00:00
Jani Taskinen
d91bc9eca2
MFH:- Fixed bug #44127 (UNIX abstract namespace socket connect does not work)
2008-07-16 14:08:38 +00:00
Antony Dovgal
04c8373b6a
MFH
2008-07-11 12:44:02 +00:00
Antony Dovgal
cf7e15c3a0
MFH: manage references of stream context properly
2008-07-11 10:25:15 +00:00
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
Greg Beaver
e668dc629b
do not scan include_path with faulty plain_wrapper-based include_path fopen
...
# _fopen_with_path_rel probably needs to call out to regular php_stream_open, for exts that use it (it is exported)
2008-04-13 22:19:10 +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
Marcus Boerger
f8f01a1fd1
- MFH Settle to 4 MB, see internals@ archives
2008-03-21 19:37:43 +00:00
Marcus Boerger
3ce7194a4d
- MFH Fix comment
2008-03-21 18:21:09 +00:00
Marcus Boerger
9f001a01a1
- MFH Increase max mmap size to 8 MB
2008-03-21 17:13:08 +00:00
Felipe Pena
bbac59aa40
MFB: Fixed bug #44440 (st_blocks undefined under BeOS)
2008-03-15 10:32:32 +00:00
Andrey Hristov
49add03404
char **error_message was passed but not used. This causes problems in cases
...
of getaddrinfo() failure, because the upper layers don't get the error.
initialize a variable because we were reading initialized in case of error.
2008-03-10 19:54:47 +00:00
Ilia Alshanetsky
425c4bca2e
Fixed bug #44233 (MSG_PEEK undefined under BeOS R5)
2008-02-27 00:30:24 +00:00
Marcus Boerger
81b40f7047
- MFH Get rid of overoptimization
2008-01-30 23:43:13 +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
Jani Taskinen
dcd3b197e7
MFH:- Fixed bug #43365 (Several enums have trailing commas)
2007-11-26 10:59:04 +00:00
Ilia Alshanetsky
6a792bed75
Fixed bug #43182 (file_put_contents() LOCK_EX does not work properly on file
...
truncation).
2007-11-12 18:44:18 +00:00
Marcus Boerger
5aa7108eb2
- MFH Add glob stream wrapper
...
[DOC] The glob stream wrapper allows stuff like this:
php -r '$it = new DirectoryIterator("glob://ext/spl/*.c");
foreach($it as $f) var_dump($f);'
2007-11-06 12:12:58 +00:00
Marcus Boerger
fb7306822d
- MFH glob stream wrapper (part 1)
2007-11-06 11:50:52 +00:00
Marcus Boerger
6362476b20
MFH streams stuff
2007-11-06 11:02:36 +00:00
Jani Taskinen
34b45a30e5
MFH: nuke unused variables
2007-11-01 17:32:44 +00:00
Jani Taskinen
f552f91618
MFH: - Fixed bug #43137 (rmdir() and rename() do not clear statcache)
2007-10-31 13:22:45 +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
Stanislav Malyshev
5b021ac2fa
fix proto
2007-08-16 23:54:24 +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
2d3d745bd9
Fixed EOF handling in case of reading from file opened in write only mode.
2007-07-25 16:34:06 +00:00
Dmitry Stogov
78932ba2f9
Fixed bug #41984 (Hangs on large SoapClient requests)
2007-07-24 14:24:44 +00:00
Jani Taskinen
d271071067
MFH: Fixed compile warnings
2007-07-21 01:43:33 +00:00
Jani Taskinen
dd23eb0c88
MFH:- Fixed bugs #36796 , #36918 , #41371 (stream_set_blocking() does not work)
2007-07-17 13:28:44 +00:00
Jani Taskinen
efe310579e
MFH: - Fixed bug #41815 (Concurrent read/write fails when EOF is reached)
2007-07-12 11:03:46 +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
Scott MacVicar
55a3d5f8b1
MFH: Fixed bug #41390 (Clarify error message with invalid protocol scheme)
2007-05-15 13:04:43 +00:00
Dmitry Stogov
eec0b67cd8
Fixed bug #41304 (compress.zlib temp files left)
2007-05-08 12:08:17 +00:00
Dmitry Stogov
41d27878de
Fixed crash on win32 in case of negative size
2007-04-18 14:23:06 +00:00
Dmitry Stogov
02ee91dbb4
Fixed crash
2007-04-18 13:53:19 +00:00
Dmitry Stogov
e1814f0dbe
WIN64 support
2007-04-16 08:09:56 +00:00
Dmitry Stogov
4de76f02ea
Fixed 64-bit support
2007-04-09 15:38:58 +00:00
Marcus Boerger
0ad927dbf2
- MFH A stream wrapper might only allow directory access
2007-03-03 19:01:34 +00:00
Ilia Alshanetsky
1b8a85415d
Fixed Bug #39396 (stream_set_blocking crashes on Win32).
2007-02-24 15:48:40 +00:00
Sara Golemon
c3935671cd
MFH (r-1.82): Add retry for interrupted reads and graceful handling for failed retries
2007-02-23 23:09:14 +00:00
Marcus Boerger
e3d786be4e
- MFH Fix logic
2007-02-22 23:26:03 +00:00
Antony Dovgal
4a95928d1d
MFH: implement PHP_STREAM_FLAG_NO_CLOSE and avoid hacks
2007-02-21 21:57:21 +00:00
Ilia Alshanetsky
a92ef5e0dc
Fixed a memory leak on highlight_file() with a non-existant file
2007-02-13 23:39:14 +00:00
Antony Dovgal
c8a4b13638
MFH: improve php_userstreamop_seek()
2007-02-13 19:50:59 +00:00
Marcus Boerger
ee3226e50e
- MFH options/exports
2007-02-07 20:59:59 +00:00
Andi Gutmans
a11e0b5ef1
- Make sure to be ANSI C compliant
2007-02-05 05:15:16 +00:00
Marcus Boerger
0709a0490f
- MFH Add PHPAPI to stuff needed by streams API for shared exts
...
- MFH Readonly issue fix to memory streams option handling (still not
activated in 5.2.1 though)
2007-02-03 16:40:05 +00:00
Marcus Boerger
0903f26151
- Disable memory streams set option until 5.2.2
2007-01-27 20:31:51 +00:00
Marcus Boerger
d10beb67c3
- MFH truncate support for mem/temp streams
2007-01-27 20:25:11 +00:00
Nuno Lopes
58d4b44ae7
only 2 bits are needed for shutdown(2) method (only 3 possible values). this is new code in 5.2.1, so don't worry..
2007-01-18 16:05:48 +00:00
Antony Dovgal
7ad1c3c5f2
MFH: add trailing '\0' to stream hashes
2007-01-15 17:07:08 +00:00
Antony Dovgal
7dd989fd4a
revert the patch temporarily, I need to test a bigger patch in HEAD..
2007-01-15 16:03:42 +00:00
Antony Dovgal
c463e98e99
MFH
2007-01-15 14:59:49 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Dmitry Stogov
5436160dc6
Fixed heap overflow
2006-12-25 13:11:23 +00:00
Antony Dovgal
6aec52bde7
MFH
2006-12-21 01:18:28 +00:00
Antony Dovgal
f807343197
MFH
2006-12-21 01:08:04 +00:00
Antony Dovgal
41b55d9b78
MFH
2006-12-21 00:47:02 +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
Antony Dovgal
60bb494607
MFH: fix #39673 (file_get_contents causes bus error on certain offsets)
2006-11-29 11:12:59 +00:00
Antony Dovgal
090a83b974
ensure that bucket->brigade is NULL in newly created bucket
2006-11-21 20:58:17 +00:00
Hannes Magnusson
133bdb42e3
Fix ftruncate() with negative size on FreeBSD
2006-11-16 16:06:51 +00:00
Dmitry Stogov
daed379550
Removed unnecessary ftell() calls (one call for each included PHP file)
2006-11-10 13:18:35 +00:00
Dmitry Stogov
f22ae56bc9
Disabled reading from stream (calls to read()) after EOF
2006-11-10 13:10:16 +00:00
Dmitry Stogov
a5f951f27c
Removed unnecessary checks for ISREG file and corresponding stat() calls on Windows
2006-11-10 10:55:26 +00:00
Rasmus Lerdorf
c8778c73c3
Mark memory streams as is_url
2006-11-04 20:43:28 +00:00
Dmitry Stogov
770b29803c
Fixed mkdir("/tmp/foo//bar/log", 0777, true)
2006-10-19 09:49:44 +00:00
Sara Golemon
d8fc0ccfe1
MFH(r-1.38) Bugfix 38648: Don't assume all buckets are part of a brigade
2006-10-11 23:11:26 +00:00
Antony Dovgal
1cc0339d40
MFH: fix crash when parsing invalid hostnames/IPs
2006-10-11 12:53:56 +00:00
Ilia Alshanetsky
557838efa4
Last set of zend_hash_init() optimizations
2006-10-03 19:51:01 +00:00
Dmitry Stogov
dbae50bf13
Fixed wrong pipe detection code
2006-09-28 07:26:02 +00:00
Antony Dovgal
99b133d7a7
MFH: fix double free(), add test
2006-09-15 07:27:22 +00:00
Dmitry Stogov
2604f21fa6
Removed unused macro USE_ZEND_ALLOC
2006-09-14 09:58:27 +00:00
Ilia Alshanetsky
f0fd70fadb
Fixed bug #37779 (empty include_path leads to search for files inside /).
2006-09-12 15:47:25 +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