| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
Move current rmdir()/rmdir() code to plain_wrappers.c
Implement mkdir()/rmdir() in ftp:// wrapper
|
|
|
|
|
|
|
| |
Move current rename() code to main/streams/plain_wrapper.c
Implement ftp/rename()
Implement userstreams/rename()
|
| |
|
|
|
|
| |
plainfiles wrapper, explicitly set method NULL in other wrappers (for now), and rewrite unlink userland function to call into wrapper_ops
|
|
|
|
|
| |
instead of a string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Usage:
php_stream *stream = php_stream_fopen("/path/to/file", "r+b", NULL,
STREAM_OPEN_PERSISTENT | ENFORCE_SAFE_MODE | REPORT_ERRORS);
the filename and mode are combined to form the hash key for the persistent
list; they must be identical for this same stream to be returned again in the
next request.
Calling php_stream_close() on a persistent stream *will* close it, as is
usual with all persistent resources in PHP/ZE.
This is deliberately *not* exposed to user-space PHP at this time.
|
|
|
|
|
| |
Tidy up handling of potential error situations for the php:// wrapper.
|
| |
|
| |
|
|
|
|
| |
filters during fopen() style opperations
|
| |
|
| |
|
|
|
|
|
|
| |
counted up, so lets make it happy although this value is not really
needed in these cases ...
|
|
|
|
|
|
| |
# hopefully all done, commiting anyway to continue work on my home box
php://input stream fixes (POST data handerl mangles data, CLI crashbug)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- webdav-specific stuff removed (should be handled using httpd.conf
LIMIT or equivalents)
- always_populate_raw_post_data now working on any method, not just
POST (and webdav methods with allow_webdav_methods), when
Content-Length is greater zero
- raw input data is also available using php://input stream,
this way one doesn't have to care about memory_limit
- input data is now always consumed (although maybe ignored,
this fixes we had withproblems with keep-alive connections
@ raw POST data is now available as php://input stream (hartmut)
|
|
|
|
|
|
|
|
| |
I've moved EOF detection into the streams layer; a stream reader
implementation should set stream->eof when it detects EOF.
Fixed test for user streams - it still fails but that is due to an output
buffering bug.
|
|
|
|
|
|
|
|
|
|
| |
It now always returns useful information for all streams.
Unified that data with socket_get_status and made socket_get_status
an alias for file_get_meta_data.
Fix Location header following which was broken in this commit:
http://cvs.php.net/diff.php/php4/ext/standard/http_fopen_wrapper.c?r1=1.41&r2=1.42&ty=h
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
buffer via PHPWRITE.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
ambiguities when filenames have ':' characters.
This slightly breaks BC with the old style zlib: wrapper.
|
|
|
|
|
|
| |
There's probably room for improvement,
docs will following some time this week.
|
|
|
|
|
|
| |
# 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
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
close stdio streams.
This needs to be tested on non-UNIX platforms.
PR: #11599, #8624
|
| |
|
|
|
|
|
| |
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
|
| |
|
|
- comfiguration is now done by an ini parameter
instead of a compile time option
- the implementations of the three standard wrappers
now live in seperate files in ext/standard
- the compiler is happy again, no more warnings
|