Commit Graph

317 Commits

Author SHA1 Message Date
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