Commit Graph

434 Commits

Author SHA1 Message Date
Kalle Sommer Nielsen
126ab758e1 Use correct defines for VC10 support 2009-12-03 10:17:58 +00:00
Felipe Pena
d3849fc38c - Fixed bug #49936 (crash with ftp stream in php_stream_context_get_option())
(patch by Pierrick)
2009-11-15 20:30:57 +00:00
Dmitry Stogov
0f6f23dc14 Fixed ext/standard/tests/streams/stream_get_contents_002.phpt 2009-09-23 10:25:54 +00:00
Sriram Natarajan
13d4fcede9 - Fixed bug #49572 (use of C++ style comments causes build failure) 2009-09-17 02:45:25 +00:00
Kalle Sommer Nielsen
e834d1a1f4 Experimental build support for VC10
- Contains newly introduced compiler warning fixes
 - configure now picks up VC10
2009-09-08 01:50:40 +00:00
Sriram Natarajan
00406ac1ae - Fixed bug #49447 (php engine need to correctly check for socket API
return status on windows). (Sriram Natarajan)
2009-09-04 07:59:48 +00:00
Kalle Sommer Nielsen
fef66b3c2d Kill compiler warnings 2009-08-01 14:45:42 +00:00
Arnaud Le Blanc
7b3ee6dc6f Fix build 2009-05-19 10:04:35 +00:00
Arnaud Le Blanc
587137b2d3 un-duplicated code (merged unicode/string variants of stream_copy_to_stream
and let the compiler optimize specializations)
2009-05-17 16:52:35 +00:00
Arnaud Le Blanc
0e4de79b40 Fixed bug #48309 (stream_copy_to_stream() and fpasstru() do not
update stream position of plain files)
2009-05-17 14:57:05 +00:00
Arnaud Le Blanc
3c6bd3eb67 Fix warning when inner stream of a temp:// stream is closed before
the stream ifself
2009-05-16 20:27:11 +00:00
Arnaud Le Blanc
804ed57ad3 Fixed bug #48307 (stream_copy_to_stream() copies 0 bytes when $source
is a socket)
2009-05-16 20:22:29 +00:00
Hannes Magnusson
ff5f9890fd MFb5.3: fix comments 2009-05-08 11:36:43 +00:00
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