summaryrefslogtreecommitdiff
path: root/main/php_streams.h
Commit message (Collapse)AuthorAgeFilesLines
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* Fixed a bug in parameter passing/conversion API which caused tons of memleak ↵Dmitry Stogov2009-09-231-28/+8
| | | | and was the reason of ~1500 test failurs
* fix segfault when running run-tests.php, and general potential for corruptionGreg Beaver2009-07-311-0/+1
| | | | | by calling php_stream_path_encode for unicode strings, php_stream_path_param_encode decrements the refcount, but never restores it, which can cause freeing of zvals before they are done being used.
* un-duplicated code (merged unicode/string variants of stream_copy_to_streamArnaud Le Blanc2009-05-171-0/+6
| | | | | and let the compiler optimize specializations)
* Better fix for #47997Arnaud Le Blanc2009-04-191-7/+5
|
* MFB5.3: Fixed bug #47997 (stream_copy_to_stream returns 1 on empty streams)Arnaud Le Blanc2009-04-191-0/+11
|
* - This is PHP 6 - if this ... ever gets outMarcus Boerger2009-03-101-1/+1
|
* Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFB: Remove trailing whitespacesLars Strojny2008-12-131-17/+17
|
* invert the logics - FLAG_FCLOSE -> FLAG_NO_FCLOSEAntony Dovgal2008-07-231-1/+1
|
* - Fixed bug #44246 (closedir() accepts a file resource opened by fopen())Felipe Pena2008-07-221-0/+2
|
* closeder/readdir/rewinddir must work only with directoriesDmitry Stogov2008-06-111-0/+2
|
* Added ability to use stream wrappers in include_pathDmitry Stogov2008-03-271-0/+3
|
* Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* Added macros for managing zval refcounts and is_ref statusesYiduo (David) Wang2007-10-071-6/+6
|
* - Fix compile warningsJani Taskinen2007-07-211-1/+1
|
* wrong commentsDmitry Stogov2007-07-091-1/+1
|
* Added ability to create local or remote (URL) user streamsDmitry Stogov2007-07-031-1/+6
| | | | | | | | | | | | | Local user streams must not be able to open(), URLs if allow_url_include is off Implemented new function stream_is_local() [ - stream_wrapper_register() extended with additional optional argument "flags" of type long. This time only one flag is implemented - STREAM_IS_URL, that means that userstream wrapper is remote (URL). By default stream is local. - stream_is_local() is a new function that accepts stream and tell if this stream is local or remote (URL) ]
* - One more tab to goMarcus Boerger2007-03-031-1/+1
|
* - Change to hex to help read-/maintainabilityMarcus Boerger2007-03-031-14/+15
|
* - Add glob stream wrapperMarcus Boerger2007-03-031-0/+4
|
* implement PHP_STREAM_FLAG_NO_CLOSE and avoid hacks in plain wrapperAntony Dovgal2007-02-211-0/+2
|
* Expand allow_url_fopen/allow_url_include functionalitySara Golemon2007-01-241-1/+9
|
* - Add more unicode stuffMarcus Boerger2007-01-161-0/+2
|
* - Help streams debuggingMarcus Boerger2007-01-151-0/+5
|
* Add convenience function for openeing files with unicode namesSara Golemon2007-01-101-0/+6
|
* Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* fix php_stream_u_get_line() macroAntony Dovgal2006-12-271-1/+1
|
* eliminate a couple of compile warningsAntony Dovgal2006-11-091-4/+4
|
* int -> size_tAntony Dovgal2006-10-031-1/+1
|
* Try out simplified API for encoding paths/filenamesSara Golemon2006-10-021-0/+55
|
* PHP6 Updates for popen() and related functionalitySara Golemon2006-09-241-0/+1
|
* Update stream_copy_to_stream() for PHP6Sara Golemon2006-09-221-2/+5
|
* Remove ZSTR() from stream macros. Calling function must apply this macroFrank M. Kromann2006-04-281-4/+4
|
* Fix copy/paste typo in php_stream_path_decode() protoSara Golemon2006-04-181-1/+1
|
* Add API hooks and unicode.filesystem_encoding for handling unicodeSara Golemon2006-03-311-0/+18
| | | | | | | | | | conversions of filename entries. Normal path conversions will simply use this converter, Certain other protocols (such as http) which specify a required character set (utf8), may override the conversion by defining a path_encode() and/or path_decode() wrapper ops method.
* Make php_stream_copy_to_mem() unicode aware andSara Golemon2006-03-301-2/+6
| | | | | | | | | | | | | | | update userspace function file_get_contents(). Note: fgc()'s second parameter (use_include_path) has been changed to be a bitmask "flags" parameter instead. For the most commonly used values (TRUE, 1) this will continue functioning as expected since the value of FILE_USE_INCLUDE_PATH is (coincidentally) 1. The impact to other values should be noted in the migration6 guide. This change makes it possible to allow fgc() to return binary file contents (default) or unicode transcoded contents (using FILE_TEXT flag).
* Another (and hopefully last) major streams commit.Sara Golemon2006-03-291-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This moves unicode conversion to the filter layer (rather than at the lower streams layer) unicode_filter.c has been moved from ext/unicode to main/streams as it's an integral part of the streams unicode conversion process. There are now three ways to set encoding on a stream: (1) By context $ctx = stream_context_create(NULL,array('encoding'=>'latin1')); $fp = fopen('somefile', 'r+t', false, $ctx); (2) By stream_encoding() $fp = fopen('somefile', 'r+'); stream_encoding($fp, 'latin1'); (3) By filter $fp = fopen('somefile', 'r+'); stream_filter_append($fp, 'unicode.from.latin1', STREAM_FILTER_READ); stream_filter_append($fp, 'unicode.to.latin1', STREAM_FILTER_WRITE); Note: Methods 1 and 2 are convenience wrappers around method 3.
* Add php_stream_get_record_unicde() API call.Sara Golemon2006-03-241-0/+2
| | | | | Update stream_get_line() userspace function to handle unicode streams.
* More stream updates.Sara Golemon2006-03-141-3/+7
| | | | | | | | | | | fgets() will work now as will anything which calls one of the _php_stream_get_line() family of functions. The one exception here is when the legacy defines are used on a unicode stream. At the moment they'll simply return NULL, I'll update these to do sloppy conversion in a bit. 'make (u)test' still doesn't work, but it's a different doesn't work.
* Refactor streams layer for PHP6.Sara Golemon2006-03-131-22/+27
| | | | | | | | | | Don't be frightened by the size of this commit. A significant portion of it is restoring the read buffer semantics back to what PHP4/5 use. (Or a close aproximation thereof). See main/streams/streams.c and ext/standard/file.c for a set of UTODO comments covering work yet to be done.
* bump year and license versionfoobar2006-01-011-3/+3
|
* Unicode support.Andrei Zmievski2005-08-111-5/+25
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* fix bugs #32742 (segmentation fault when the stream with a wrapper is not ↵Antony Dovgal2005-05-161-0/+1
| | | | | | | closed), #32171 (Userspace stream wrapper crashes PHP)
* Fixed bug #31515 (Improve performance of scandir() by factor of 10 or so).Ilia Alshanetsky2005-02-221-4/+4
|
* Avoid bug where stream_copy_to_stream() call for precisely 2000000 bytes wouldWez Furlong2005-02-061-4/+2
| | | | | | result in entire resource being copied. The mmap brake is already present inside mmap_range() and is set to 1MB.
* Fixed bug #29801 (Set limit on the size of mmapable data).Ilia Alshanetsky2004-11-151-2/+5
|
* NETWARE has a proper stat structure Now no need of CLIB_STAT_PATCH checksAnantha Kesari H Y2004-09-291-4/+0
|
* Added stream_filter_remove() to cancel a stream filter.Sara Golemon2004-09-141-0/+1
| | | | | | | | | | Register filters as resources when instantiated by stream_filter_(ap|pre)pend(). Export php_stream_filter_flush() internal function to wind buffered data out of a particular filter until consumed by a later filter or sent to stream->readbuffer or stream->ops->write()