summaryrefslogtreecommitdiff
path: root/ext/standard/php_fopen_wrapper.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix #27865; don't dup STDIN, STDOUT or STDERR when running under CLI.Wez Furlong2004-04-191-3/+3
|
* - A belated happy holidays and PHP 5Andi Gutmans2004-01-081-2/+2
|
* Route mkdir()/rmdir() via wrapper ops.Sara Golemon2003-12-131-1/+3
| | | | | | Move current rmdir()/rmdir() code to plain_wrappers.c Implement mkdir()/rmdir() in ftp:// wrapper
* Route rename() via wrapper ops.Sara Golemon2003-12-121-1/+2
| | | | | | | Move current rename() code to main/streams/plain_wrapper.c Implement ftp/rename() Implement userstreams/rename()
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* Setup unlink() method in wrapper_ops structure, implement unlink in ↵Sara Golemon2003-05-141-1/+2
| | | | plainfiles wrapper, explicitly set method NULL in other wrappers (for now), and rewrite unlink userland function to call into wrapper_ops
* Changed stream filter factory to be capable of accepting a zval as a parameterMoriyoshi Koizumi2003-04-161-2/+2
| | | | | instead of a string
* Implement persistent plain file streams.Wez Furlong2003-03-181-1/+1
| | | | | | | | | | | | | | | | | 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.
* Avoid using FILE* where possible.Wez Furlong2003-03-181-10/+18
| | | | | Tidy up handling of potential error situations for the php:// wrapper.
* Fixed compiler warnings.Ilia Alshanetsky2003-02-281-2/+2
|
* Reduce unnecessary filter applications when stream is (read|write) onlySara Golemon2003-02-201-1/+9
|
* Introduce //filter target to php: wrapper to allow inline application of ↵Sara Golemon2003-02-181-0/+56
| | | | filters during fopen() style opperations
* Use FILE*-less implementation for php://(stdin|stdout|stderr)Wez Furlong2003-02-131-7/+7
|
* Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* the apache 1.x sapi read_posts tests for SG(read_post_bytes) beingHartmut Holzgraefe2002-11-211-0/+1
| | | | | | counted up, so lets make it happy although this value is not really needed in these cases ...
* HTTP_RAW_POST_DATA BC fixesHartmut Holzgraefe2002-11-121-5/+7
| | | | | | # hopefully all done, commiting anyway to continue work on my home box php://input stream fixes (POST data handerl mangles data, CLI crashbug)
* killed some warnings identified by sebastianHartmut Holzgraefe2002-10-211-3/+3
|
* some changes to how request input data (Content-Lenght >0) is handledHartmut Holzgraefe2002-10-211-0/+57
| | | | | | | | | | | | | | - 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)
* This seems to resolve the issues with fgets.Wez Furlong2002-10-051-0/+1
| | | | | | | | 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.
* Rename file_get_wrapper_data -> file_get_meta_data.Wez Furlong2002-09-261-3/+5
| | | | | | | | | | 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
* Implement read buffering in streams.Wez Furlong2002-09-231-4/+4
| | | | | | | | | | | | 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.
* fix warningWez Furlong2002-09-071-0/+1
|
* Implement php://output wrapper, which can be used to write to the outputWez Furlong2002-09-071-1/+38
| | | | | buffer via PHPWRITE.
* Always initialize wrappers, regardless of PG(allow_url_fopen).Wez Furlong2002-04-161-1/+2
| | | | | | | | | | | | 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
* Fix declarations (Thanks Sebastian)Wez Furlong2002-04-111-1/+1
|
* Implement stream context and status notification system.Wez Furlong2002-04-101-1/+1
| | | | | | Bump the BC for zlib notice to a warning # See my RFC to php-dev a few days ago
* Phase 3 of OO wrapper cleanupWez Furlong2002-03-281-0/+2
| | | | | # What was phase 2?
* Phase 1 of wrapper OO cleanup.Wez Furlong2002-03-241-3/+7
| | | | | # Collecting underpants
* Require that wrappers use <protocol>://<path> to avoidWez Furlong2002-03-211-0/+3
| | | | | | ambiguities when filenames have ':' characters. This slightly breaks BC with the old style zlib: wrapper.
* Implement user-space streams.Wez Furlong2002-03-191-1/+2
| | | | | | There's probably room for improvement, docs will following some time this week.
* TSRMLS related work on streams, as discussed with Zeev.Wez Furlong2002-03-181-1/+1
| | | | | | # Should be the last "broad" commit for a while # Don't forget to make clean ; make
* Streams now make more use of the memory manager, so tracking downWez Furlong2002-03-171-1/+1
| | | | | | leaking streams should be easier. # I hate these big commits
* New PHP streams...Wez Furlong2002-03-151-16/+23
|
* Maintain headers.Sebastian Bergmann2002-02-281-1/+1
|
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* - Don't wrap lines... this is annoying while coding.Derick Rethans2001-09-091-2/+2
|
* fix build.foobar2001-08-011-1/+1
|
* More TSRMLS_FETCH annihilation. Enough for today...Zeev Suraski2001-07-311-1/+1
|
* Fix Win32 buildZeev Suraski2001-06-261-0/+2
|
* dup fds before fdopen'ing them, so that people cannot deliberatelySascha Schumann2001-06-221-3/+4
| | | | | | | | | close stdio streams. This needs to be tested on non-UNIX platforms. PR: #11599, #8624
* Fix folding and clean up some extensionsRasmus Lerdorf2001-06-061-2/+5
|
* vim-6 does folding - clean up a bunch of missing folding tags plusRasmus Lerdorf2001-06-051-0/+8
| | | | | some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
* - Fix copyright notices with 2001Andi Gutmans2001-02-261-1/+1
|
* fopen wrappers cleanupHartmut Holzgraefe2000-10-131-0/+47
- 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