| 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()
|
| |
|
|
|
|
| |
new position. With zlib 1.1.4 gztell() alse returns 0 when working
on non-zlib files (test ext/zlib/tests/gzreadgzwriteplain.phpt).
|
| | |
|
| |
|
|
| |
plainfiles wrapper, explicitly set method NULL in other wrappers (for now), and rewrite unlink userland function to call into wrapper_ops
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
(sorry I didn't get around to doing this sooner)
|
| | |
|
| |
|
|
|
|
|
|
| |
gzeof has different semantics from feof, in that gzeof will return true
if the read position is at EOF, even if the most recent read was 100%
successful.
feof will return true only (usually) if the most recent fread failed.
|
| | |
|
| |
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Change zlib:// and bzip2:// to compress.zlib:// and compress.bzip2://
Tidy up old socket/network code/comments.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
Added notice when a requested wrapper is not found.
# This BC thing was giving me nightmares.
# It took me 10 minutes to realize I hadn't compiled in zlib support also.
|
| |
|
|
|
| |
# What was phase 2?
|
| |
|
|
|
| |
# Collecting underpants
|
| |
|
|
|
|
| |
ambiguities when filenames have ':' characters.
This slightly breaks BC with the old style zlib: wrapper.
|
| |
|
|
|
|
|
|
| |
You can now do this:
copy("zlib:src.gz", "bz2:dest.bz2");
As with zlib, most of the functions with counterparts
in file.c are now aliases to those functions.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
| |
# 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
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|
|
so all the #define/#include workarounds in zlib.c are no longer needed
|