summaryrefslogtreecommitdiff
path: root/ext/standard/php_fopen_wrapper.c
Commit message (Collapse)AuthorAgeFilesLines
* Readd fd 0-2 protection, so that users cannot close themSascha Schumann2003-05-131-2/+7
|
* Supply STDIN/OUT/ERR_FILENO directly, instead of opening them throughSascha Schumann2003-05-131-10/+7
| | | | | stdio's fdopen.
* MFH: Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* MFHHartmut Holzgraefe2002-11-211-2/+2
|
* 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