1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00
Commit Graph

421 Commits

Author SHA1 Message Date
Pierre Joye
f0c630b9ac - silent compiler warning 2009-04-20 08:28:14 +00:00
Arnaud Le Blanc
6b213bffb6 Better fix for #47997 2009-04-19 17:09:47 +00:00
Arnaud Le Blanc
069c0fdc80 MFB5.3: Fixed bug #47997 (stream_copy_to_stream returns 1 on empty streams) 2009-04-19 13:50:25 +00:00
Mikko Koppanen
a1a580c012 Added support for passing O_NONBLOCK to the underlying open() system call 2009-04-11 11:44:06 +00:00
Hannes Magnusson
ba2182a44c Fix errormessage check
# Is correct in 5.
2009-03-31 16:25:58 +00:00
Felipe Pena
8ecf8ede1f - Removed:
- UG(unicode) checks
       - pcre_cache_entry.unicode_mode
- Changed:
       - ZEND_STR_TYPE -> IS_UNICODE
       - convert_to_text -> convert_to_unicode
       - convert_to_text_ex -> convert_to_unicode_ex

(Felipe, Steph)
2009-03-26 20:02:53 +00:00
Hannes Magnusson
57ad6e3b14 Add missing proto 2009-03-25 19:55:50 +00:00
Arnaud Le Blanc
f6d76ad89a Better fix for #44607. Fixes #47487 (php_stream_fill_read_buffer()
performance degraded after fix of bug 44607).
2009-03-19 17:54:28 +00:00
Marcus Boerger
d4f5b3f0a9 - This is PHP 6 - if this ... ever gets out 2009-03-10 23:40:06 +00:00
Ilia Alshanetsky
f18a2ff04c MFB:Adjust condition 2009-02-10 16:14:35 +00:00
Ilia Alshanetsky
91aa9e2bf9 MFB: Added path truncation E_NOTICE to let people now when path resolving
caused the file path to be truncated.
2009-02-10 14:22:19 +00:00
Ilia Alshanetsky
4164e522c6 MFB: MFB52: Fixed bug #44874 (dead pfsockopen'ed sockets aren't reaped when
the remote end restarts)
2009-02-08 16:54:57 +00:00
Pierre Joye
569d591229 - silent compiler warning about socklen_t benign redefinition 2009-02-02 09:49:41 +00:00
Felipe Pena
57470a9bfd - Fixed bug #47037 (No error when using fopen with emty string)
Patch by Cristian Rodriguez R.
2009-01-08 18:43:12 +00:00
Arnaud Le Blanc
b8708d43f6 Fixed error conditions handling in stream_filter_append() 2009-01-08 17:01:11 +00:00
Felipe Pena
d2287d7701 - Added check for EWOULDBLOCK
- Using EWOULDBLOCK instead of EAGAIN by portability issues
(Related to #46917)
2009-01-07 20:19:17 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Lars Strojny
7611a5d984 MFB: 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. [DOC] (?) 2008-12-14 16:27:30 +00:00
Dmitry Stogov
e5454b359a Fixed bug #46409 (__invoke method called outside of object context when using array_map) 2008-11-27 19:02:45 +00:00
Arnaud Le Blanc
c8f24ea5bd Fixed bug #46673 (stream_lock call with wrong paramater) 2008-11-26 04:18:24 +00:00
David Soria Parra
e61a107e8b Revert fix for 43782, as it caused problems.
[DOC] We better document the issue at it is.
2008-11-24 15:35:03 +00:00
Arnaud Le Blanc
e1fcaeef9d 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:50:17 +00:00
Arnaud Le Blanc
fc938b54c7 Fixed stream_get_contents() when using $maxlength and socket is not
closed. indeyets@php.net on #46049.
2008-11-11 01:55:19 +00:00
Arnaud Le Blanc
2e32876eaa Fixed stream_get_line() to behave as documented on non-blocking streams 2008-11-04 17:05:17 +00:00
Arnaud Le Blanc
fc62c1ff0a Fixed bug #44607 (stream_get_line unable to correctly identify the
"ending" in the stream content)
2008-11-03 23:28:45 +00:00
Arnaud Le Blanc
c4c2308fec Fixed bug #45303 (Opening php:// wrapper in append mode results
in a warning)
2008-11-03 16:58:28 +00:00
Arnaud Le Blanc
0bed5602ee Fixed bug #43353 (wrong detection of 'data' wrapper causes notice) 2008-11-03 15:47:05 +00:00
Nuno Lopes
2c49010756 MFB: clean some dead code 2008-09-23 15:22:05 +00:00
Greg Beaver
ae229cb860 MF52 fix Bug #46147: after stream seek, appending stream filter reads incorrect data 2008-09-22 01:26:38 +00:00
David Soria Parra
edc3fff0ff Fixed bug #43782 (feof() does not detect timeout on socket)
# Poll returns 0 if it times out.
# We check for 0 and use the user set timeout in set_options by passing -1.
2008-08-26 16:06:23 +00:00
Arnaud Le Blanc
a51e5ebaeb 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:24:04 +00:00
Antony Dovgal
35f366273f increase context refcount before open() to avoid crash when open() fails and destroys the context 2008-08-06 09:03:36 +00:00
Dmitry Stogov
013059c247 Fixed uninitialized data 2008-07-25 08:53:11 +00:00
Jani Taskinen
1a58013044 - Fixed bug #44127 (UNIX abstract namespace socket connect does not work) 2008-07-16 14:08:04 +00:00
Antony Dovgal
ca0a6ec295 not all stream wrappers use context, so no need to addref in all cases 2008-07-11 12:40:20 +00:00
Antony Dovgal
3519ed9e31 manage references of stream context properly 2008-07-11 10:24:29 +00:00
Dmitry Stogov
00ea3108ea closeder/readdir/rewinddir must work only with directories 2008-06-11 09:01:44 +00:00
Stanislav Malyshev
dcd1cd8002 with unicode buffers, positions are in uchars 2008-06-08 18:21:59 +00:00
Antony Dovgal
41c60bab79 fix invalid free in Unicode filter 2008-05-20 07:48:04 +00:00
Greg Beaver
2b41209dfb MFB: 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:40:10 +00:00
Greg Beaver
e8ac7c11d1 MFB: Fixed potentially confusing error message on failure when no errors are logged 2008-04-28 22:37:45 +00:00
Greg Beaver
b34cf3d86f MFB 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:23 +00:00
Dmitry Stogov
977cc79398 Added ability to use stream wrappers in include_path 2008-03-27 10:33:52 +00:00
Antony Dovgal
4c7b5a89ba Change streams to not use mmap() when reading files (aka copying to memory).
There are two problems with mmap() in this case:
1) there is no performance gain since we allocate the memory anyways;
2) memcpy() may crash if somebody truncates this file at the same moment
(see http://dev.daylessday.org/diff/mmap.phps for example);

It seems to work fine with fpassthru(), though why it is so should be investigated.

Thanks to Andrey Vasilishin for the report and Anight for pressing this through =)
2008-03-24 16:28:08 +00:00
Marcus Boerger
384d50b37b - Settle to 4 MB, see internals@ archives 2008-03-21 19:37:32 +00:00
Marcus Boerger
12a66e0d1c - Fix comment 2008-03-21 18:20:51 +00:00
Marcus Boerger
a70a882df4 - Increase max mmap size to 8 MB 2008-03-21 17:12:38 +00:00
Felipe Pena
af9b1c3376 MFB: Fixed bug #44440 (st_blocks undefined under BeOS) 2008-03-15 10:34:12 +00:00
Andrey Hristov
af5a93e552 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:55:43 +00:00
Ilia Alshanetsky
94ee2269d6 MFB: Fixed bug #44233 (MSG_PEEK undefined under BeOS R5) 2008-02-27 00:30:49 +00:00