Antony Dovgal
1a78dc5fbf
MFH: fix #35079 (stream_set_blocking(true) toggles, not enables blocking)
...
patch by askalski at gmail dot com
2005-11-17 14:19:40 +00:00
Wez Furlong
890f7f46b4
Fix #34957 ; file access checks should use VCWD_ACCESS()
2005-10-22 17:02:10 +00:00
Marcus Boerger
6b0de601be
- MFH C vs. C++ fix
2005-10-07 07:38:59 +00:00
Marcus Boerger
35c82a75eb
- MFH Fix issue (endless loop) with temp/memory streams
2005-10-06 21:31:25 +00:00
Derick Rethans
b842d8e3d8
- MFH: Fixed a bug where stream_get_meta_data() did not return the "uri"
...
element for files opened with tmpname().
2005-08-26 12:56:07 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
Wez Furlong
8c57c3a9fe
compile before commit (gah!)
2005-07-18 14:12:52 +00:00
Wez Furlong
c4ba9edd57
Apparently our pipe detection code just above this isn't foolproof.
...
Catch it here.
2005-07-18 13:28:24 +00:00
Marcus Boerger
7316ee0399
- Fix problem with debug mode on selective machines
2005-07-17 18:39:24 +00:00
Ilia Alshanetsky
87d6f497f7
Likely fix for bug #33140
2005-06-24 02:04:19 +00:00
Ilia Alshanetsky
3b79941168
Fixed bug #31054 (safe_mode & open_basedir checks only check first
...
include_path value).
2005-06-20 15:59:13 +00:00
Sebastian Bergmann
1d9baf3dd5
ZTS fix.
2005-06-14 05:13:01 +00:00
Ilia Alshanetsky
b36d4ae02c
Added bindto socket context option.
2005-06-14 02:39:42 +00:00
Wez Furlong
6b29526617
Don't crash when compiled with the zend memory manager disabled.
2005-06-06 01:52:18 +00:00
Dmitry Stogov
8b134356ef
Disabled search of recored separator outside of buffer
2005-06-01 15:11:44 +00:00
Antony Dovgal
041b37b2b9
make it compile on Win32 (thanks to Sebastian for noticing)
2005-05-24 10:13:52 +00:00
Ilia Alshanetsky
d367b7b913
Fixed bug #32810 (temporary files not using plain file wrapper).
2005-05-23 21:48:51 +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
Wez Furlong
4cabeaf1c7
fix inverted logic and thus Bug #27508
2005-05-11 02:02:27 +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
Uwe Schindler
cd47b3c542
Bug #32614 - prevent from crahsing with segfault on solaris if fdopen() fails - this fixes NOT the stdio-problem on solaris!
2005-04-07 07:29:14 +00:00
Ilia Alshanetsky
a7ae41bf89
Fixed bug #31363 (broken non-blocking flock()).
...
# Patch by ian at snork dot net
2005-04-06 13:57:30 +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
Sara Golemon
29ede46872
BugFix #31137 stream_filter_remove() segfaults when stream already closed
2005-03-29 04:02:03 +00:00
Rasmus Lerdorf
00832b763f
Silence a warning here on systems where off_t is a long long.
2005-03-17 16:26:24 +00:00
Andi Gutmans
f4cdd366e1
- Fix comment
2005-02-24 03:04:57 +00:00
Ilia Alshanetsky
8aaafb1ae9
Increase maximum mmapable file size to 2mb from 1mb.
2005-02-23 22:41:05 +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
Wez Furlong
f400f0e665
add an open mode for the memory streams that allows the stream to take
...
ownership of the passed-in buffer
2005-02-06 21:41:36 +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
Antony Dovgal
aa35b11afe
fix Win32 & Netware build
2004-10-28 05:05:20 +00:00
Antony Dovgal
ceacc834fb
fix bug #30388 (rename across filesystems loses ownership and permission info)
2004-10-27 11:58:49 +00:00
Ilia Alshanetsky
5c04e39383
Fixed bug #30362 (stream_get_line() not handling end string correctly).
2004-10-11 18:31:49 +00:00
Wez Furlong
b7182e85c7
Fix the return value check too
2004-10-11 01:40:41 +00:00
Wez Furlong
7cb4e769ff
check the correct flag for async connect
2004-10-11 01:30:19 +00:00
Christian Stocker
bd99d77bf6
- Fixed bug #27183 (Userland stream wrapper segfaults on stream_write)
...
Was applied to PHP 4 ages ago, but not to PHP 5 branch
2004-10-08 14:40:11 +00:00
Anantha Kesari H Y
b855337d39
CLIB_STAT_PATCH check is redundant. So removing it
2004-09-23 13:07:43 +00:00
Wez Furlong
ff4e970fb1
Make new poll stuff work on win32 (and still be safe on unix)
2004-09-17 14:36:55 +00:00
Wez Furlong
99e290f882
Fix for Bug #24189 : possibly unsafe select(2) usage.
...
We avoid the problem by using poll(2).
On systems without poll(2) (older bsd-ish systems, and win32), we emulate
poll(2) using select(2) and check for valid descriptors before attempting
to access them via the descriptor sets.
If an out-of-range descriptor is detected, an E_WARNING is raised suggesting
that PHP should be recompiled with a larger FD_SETSIZE (and also with a
suggested value).
Most uses of select(2) in the source are to poll a single descriptor, so
a couple of handy wrapper functions have been added to make this easier.
A configure option --enable-fd-setsize has been added to both the unix and
win32 builds; on unix we default to 16384 and on windows we default to 256.
Windows FD_SETSIZE imposes a limit on the maximum number of descriptors that
can be select()ed at once, whereas the unix FD_SETSIZE limit is based on the
highest numbered descriptor; 256 should be plenty for PHP scripts under windows
(the default OS setting is 64).
The win32 specific parts are untested; will do that now.
2004-09-17 12:44:56 +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
Sara Golemon
9cd4320b65
Allocating hash tables should be done via macro, not directly
2004-09-13 21:07:22 +00:00
Sara Golemon
ed5dcbff9b
A little extra code to allow overriding plainfiles wrapper as well
2004-09-10 21:50:29 +00:00
Sara Golemon
955b43ba12
Add stream_wrapper_unregister()
...
Disables a wrapper (user-defined or built-in) for the life of the request.
Add stream_wrapper_restore()
Restores the wrapper originally defined at the time the request started
to the protocol name mentioned.
2004-09-10 20:45:35 +00:00