summaryrefslogtreecommitdiff
path: root/main/user_streams.c
Commit message (Collapse)AuthorAgeFilesLines
* Move streams files around a bit, to ease maintenance.Wez Furlong2003-02-161-863/+0
| | | | | I will update the win32 .dsp in a moment.
* A new file added and some old files modified for NetWare.Anantha Kesari H Y2003-01-031-0/+6
|
* Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* Fixed possible memory leaks.Ilia Alshanetsky2002-10-151-0/+8
|
* Fix leak, and avoid initialization problems where retval is re-usedWez Furlong2002-10-151-4/+13
| | | | | within a function.
* Fix stream_eof result interpretation (and thus the user-streams test).Wez Furlong2002-10-141-5/+6
|
* This seems to resolve the issues with fgets.Wez Furlong2002-10-051-46/+42
| | | | | | | | 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 streams functions to fit with naming conventions, adding aliasesWez Furlong2002-09-281-2/+2
| | | | | | for old functions where required. Make use of recent changes to chunk size and timeout setting code.
* Allow user streams/wrappers to implement fstat(), opendir() and stat().Wez Furlong2002-09-281-14/+347
|
* Fix segfault in wrapper error log mechanism when errors are logged onWez Furlong2002-09-261-0/+10
| | | | | | | | | | | | | | | | | | | | | second and subsequent events. Implement very simple recursion protection for user streams written like this: class urlEncodeStream { var $fp = NULL; function stream_open($path, $mode, $options, &$opened_path) { $this->fp = fopen($path, $mode); // <-- this recurses infinitely return is_resource($this->fp); } } file_register_wrapper('urlencode', 'urlEncodeStream'); $fp = fopen('urlencode:///tmp/outputfile.txt', 'w'); Noticed by: Yasuo.
* Remove allow_url_fopen checks from the user streams code.Wez Furlong2002-09-231-6/+0
| | | | | | | | Rationale: user streams might not be implementing network access, and the administrator can disable the file_register_wrapper function and other network access functions if s/he does not want to allow this functionality.
* Revise buffer/seek code a little.Wez Furlong2002-09-231-28/+68
| | | | | | Tidy up user streams even more. Make test case quite aggressive.
* Implement read buffering in streams.Wez Furlong2002-09-231-92/+35
| | | | | | | | | | | | 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.
* Tidy up some user stream code.Wez Furlong2002-09-181-10/+17
| | | | | Add a small test case (not yet complete).
* Tag user streams as being URLs, so that safe mode restrictionsWez Furlong2002-09-071-0/+1
| | | | | will come into play.
* use php_error_docref()Marcus Boerger2002-08-251-5/+5
|
* these are case sensitiveSascha Schumann2002-05-041-1/+1
|
* touch.James Cox2002-05-041-1/+1
|
* add $id:$ lineJames Cox2002-05-041-0/+2
|
* call_result is set but never usedSascha Schumann2002-05-041-4/+2
|
* Fix declarations (Thanks Sebastian)Wez Furlong2002-04-111-2/+2
|
* Implement stream context and status notification system.Wez Furlong2002-04-101-2/+2
| | | | | | Bump the BC for zlib notice to a warning # See my RFC to php-dev a few days ago
* Fix ZE2 build.Yasuo Ohgaki2002-03-291-1/+1
|
* Phase 3 of OO wrapper cleanupWez Furlong2002-03-281-1/+4
| | | | | # What was phase 2?
* Phase 1 of wrapper OO cleanup.Wez Furlong2002-03-241-6/+12
| | | | | # Collecting underpants
* Streams are all tracked as resources now.Wez Furlong2002-03-201-1/+1
| | | | | | Add some logic that will help track down leaks when debug is enabled.
* make buffer length warnings more verboseWez Furlong2002-03-191-4/+5
|
* register some constants for user streamsWez Furlong2002-03-191-2/+12
|
* correct copy/paste typoWez Furlong2002-03-191-1/+1
|
* avoid possible buffer overruns when write returns a value larger than the bufferWez Furlong2002-03-191-0/+7
|
* Make file_get_wrapper_data return the underlying PHP object forWez Furlong2002-03-191-0/+4
| | | | | user-space streams.
* Implement user-space streams.Wez Furlong2002-03-191-0/+484
There's probably room for improvement, docs will following some time this week.