| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
| |
Tidy up user streams even more.
Make test case quite aggressive.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Eliminate similar code from network.c.
Implement fgets equivalent at the streams level, which can detect
the mac, dos and unix line endings and handle them appropriately.
The default behaviour is unix (and dos) line endings.
An ini option to control this behaviour will follow.
# Don't forget to make clean!
# I've done some testing but would appreciate feedback from
# people with scripts/extensions that seek around a lot.
|
|
|
|
|
|
| |
Lets stick to a single category of "http" for the "user_agent"
context override.
|
| |
|
|
|
|
|
|
| |
flush before the stream is closed. This allows filters to finish a chunk
and write footers etc.
|
|
|
|
|
| |
Unify error messages for ext/ftp. (which was using php_stream_error).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Filters can be stacked onto a stream; more details will follow in docs and
on php-dev.
Implement "string.rot13" filter
Allows the following script:
$fp = fopen("file.txt", "r");
stream_filter_prepend($fp, "string.rot13");
// File contents will be subject to a rot13 transformation before
// being output.
fpassthru($fp);
fclose($fp);
|
|
|
|
|
|
|
|
|
|
|
| |
php_stream_set_option which can be used in a similar way as ioctl()
to set options for streams.
Current options include buffering and blocking support.
o Buffer control is support for stdio based streams.
o Blocking/non-blocking is supported for stdio and socket based streams.
|
|
|
|
|
| |
if a filename is a URL and thus if safe-mode checks should be skipped.
|
|
|
|
|
|
| |
function... (Thanks Marcus!)
Add a convenience macro for importing a stream from a zval.
|
|
|
|
|
|
|
|
| |
and warnings (some of which are bogus) when there are problems opening
streams.
Implement sanity check on the mode used to open ftp and http connections.
This fixes Bug 12004.
|
| |
|
|
|
|
|
| |
what streams are currently registered.
|
|
|
|
|
|
|
| |
Add/amend debugging code for sockets.
Add a flag that will help the http wrapper optimize itself when
it is not being used for include/require.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add is_url field to wrapper structure; the stream wrapper openers
will disallow opening is is_url && !PG(allow_url_fopen).
Add infrastructure for stat($url) and opendir($url).
Tidy up/centralize code that locates and instantiates wrappers for the
various operations.
Implement opendir for plain files.
Make the PHP opendir and dir functions use the streams implementations.
Add modelines for syntax highlighting the pear scripts in vim
|
| |
|
| |
|
|
|
|
|
|
| |
Bump the BC for zlib notice to a warning
# See my RFC to php-dev a few days ago
|
|
|
|
|
| |
# What was phase 2?
|
|
|
|
|
| |
# Collecting underpants
|
|
|
|
|
|
|
|
|
|
| |
in ext/standard/file.c, so a gzopen()ed file pointer can be used in
fread, fseek etc.
Improved behaviour of zlib stream.
Moved passthru code into streams.c
# I'm not happy about BG(mmap_file)
Nuked gzgetss_state as no longer needed.
|
|
|
|
|
| |
Move state tracking to stream structure.
|
|
|
|
|
|
| |
Add some logic that will help track down leaks
when debug is enabled.
|
|
|
|
|
| |
Improve interaction with fopencookie.
|
| |
|
| |
|
|
|
|
|
|
| |
There's probably room for improvement,
docs will following some time this week.
|
|
|
|
|
| |
Maybe separating TSRMLS away wasn't such a good idea (sorry Wez :)
|
|
|
|
|
|
| |
# Should be the last "broad" commit for a while
# Don't forget to make clean ; make
|
| |
|
|
|
|
|
|
| |
leaking streams should be easier.
# I hate these big commits
|
|
|
|
|
|
|
|
|
| |
natively (Thanks Marcus).
Implement php_stream_make_seekable() and add STREAM_MUST_SEEK as an
option to php_stream_open_wrapper().
See README.STREAMS for usage.
|
| |
|
|
|
|
|
| |
Update docs.
|
| |
|
|
|
|
|
| |
that calculates a max length of zero. (Thanks again Marcus).
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
and rename to php_connect_nonb().
Use php_connect_nonb() instead of connect() in php_hostconnect() -> timeouts
should now work in php_hostconnect().
sock streams abstraction now uses php_sockbuf as the "abstract" pointer.
|
|
|