summaryrefslogtreecommitdiff
path: root/main/streams.c
Commit message (Collapse)AuthorAgeFilesLines
* No need to check for allow_url_fopen here.Edin Kadribasic2002-06-191-3/+0
| | | | | | #This closes two bugs which I cannot find right now courtesy our buggy bug #database.
* - Fix builtin gets() emulation (hopefully).Markus Fischer2002-06-111-11/+3
|
* - Add missing Id tag.Markus Fischer2002-06-111-0/+2
|
* - Always \0 terminate data returned from _php_stream_copy_to_mem().Markus Fischer2002-06-111-1/+2
|
* - Since streams are always enabled, instead of just printing 'enabled' we tellMarkus Fischer2002-06-081-0/+4
| | | | | what streams are currently registered.
* Remove debug code that should not have been committed.Wez Furlong2002-04-301-7/+0
| | | | | # I must apologize for the quality of my commits tonight...
* Implement context option setting API.Wez Furlong2002-04-301-2/+44
| | | | | | | Add/amend debugging code for sockets. Add a flag that will help the http wrapper optimize itself when it is not being used for include/require.
* Make scheme part decoding rfc2396 compliant.Wez Furlong2002-04-191-4/+4
| | | | | | Change zlib:// and bzip2:// to compress.zlib:// and compress.bzip2:// Tidy up old socket/network code/comments.
* Always initialize wrappers, regardless of PG(allow_url_fopen).Wez Furlong2002-04-161-51/+218
| | | | | | | | | | | | 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
* Adding PHPAPI needed for exif on Win32Frank M. Kromann2002-04-151-1/+1
|
* Implement stream context and status notification system.Wez Furlong2002-04-101-6/+43
| | | | | | Bump the BC for zlib notice to a warning # See my RFC to php-dev a few days ago
* Added BC support for old style zlib: wrapper.Wez Furlong2002-04-061-0/+14
| | | | | | | 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.
* main/streams.cWez Furlong2002-04-021-0/+1
|
* Phase 3 of OO wrapper cleanupWez Furlong2002-03-281-9/+59
| | | | | # What was phase 2?
* Phase 1 of wrapper OO cleanup.Wez Furlong2002-03-241-3/+3
| | | | | # Collecting underpants
* -defined php_stream_temp_new() for standard temp streamsMarcus Boerger2002-03-231-2/+1
|
* *** empty log message ***Markus Fischer2002-03-211-1/+1
|
* Require that wrappers use <protocol>://<path> to avoidWez Furlong2002-03-211-1/+1
| | | | | | ambiguities when filenames have ':' characters. This slightly breaks BC with the old style zlib: wrapper.
* Convert the gzfile related functions into aliases for their equivalentsWez Furlong2002-03-211-1/+49
| | | | | | | | | | 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.
* Streams are all tracked as resources now.Wez Furlong2002-03-201-7/+47
| | | | | | Add some logic that will help track down leaks when debug is enabled.
* Improve behaviour of the stream casting operation.Wez Furlong2002-03-191-19/+62
| | | | | Improve interaction with fopencookie.
* fix for bug #16168Wez Furlong2002-03-191-14/+15
|
* register some constants for user streamsWez Furlong2002-03-191-3/+1
|
* Make file_get_wrapper_data return the underlying PHP object forWez Furlong2002-03-191-1/+1
| | | | | user-space streams.
* Implement user-space streams.Wez Furlong2002-03-191-2/+4
| | | | | | There's probably room for improvement, docs will following some time this week.
* Fix build under Release_TSZeev Suraski2002-03-181-1/+1
| | | | | Maybe separating TSRMLS away wasn't such a good idea (sorry Wez :)
* fix non-TS build...Wez Furlong2002-03-181-1/+1
|
* TSRMLS related work on streams, as discussed with Zeev.Wez Furlong2002-03-181-63/+70
| | | | | | # Should be the last "broad" commit for a while # Don't forget to make clean ; make
* Make Sebastian happyZeev Suraski2002-03-181-1/+1
|
* Fix the build and all of the outstanding VC++ warningsZeev Suraski2002-03-181-9/+13
|
* Streams now make more use of the memory manager, so tracking downWez Furlong2002-03-171-41/+63
| | | | | | leaking streams should be easier. # I hate these big commits
* Fix for php_stream_gets when the implementation does not support itWez Furlong2002-03-171-3/+53
| | | | | | | | | natively (Thanks Marcus). Implement php_stream_make_seekable() and add STREAM_MUST_SEEK as an option to php_stream_open_wrapper(). See README.STREAMS for usage.
* -fix bug with wrappersMarcus Boerger2002-03-171-1/+1
|
* -copy_stream_to_stream returns size if maxlen == PHP_STREAM_COPY_ALLMarcus Boerger2002-03-161-38/+42
| | | | | #had to commit myself to do the rest...
* fix ftell/fseek in stdio streamsWez Furlong2002-03-161-0/+3
|
* - Indentation fix.Andi Gutmans2002-03-161-4/+5
| | | | | | | | | | | | Never do: if (expr) { } else It should be: if (expr) { } else {
* Implement get_file_contents() as discussed (briefly!) by myself, DerickWez Furlong2002-03-161-1/+1
| | | | | | and Sterling on php-dev some months ago. It returns the file contents as a string, and uses mmap if possible.
* Hopefully fix resource usage so that we have no leaks and don't segfault.Wez Furlong2002-03-161-16/+37
|
* Tweak the API to be more consistent.Wez Furlong2002-03-161-7/+19
| | | | | Update docs.
* Hopefully fix probs with apache.Wez Furlong2002-03-161-4/+20
|
* some minor docu-in-header changesWez Furlong2002-03-161-2/+1
|
* ZTS build fixYasuo Ohgaki2002-03-161-1/+1
|
* ZTS build fixYasuo Ohgaki2002-03-161-4/+4
|
* Allow php_stream_copy_to_stream to do nothing when used with codeWez Furlong2002-03-161-3/+12
| | | | | that calculates a max length of zero. (Thanks again Marcus).
* some tweaks for seek/read used in image.c (thanks Marcus)Wez Furlong2002-03-161-4/+9
|
* more *'sWez Furlong2002-03-161-14/+14
|
* - Change one strncpy() to strlcpy().Andi Gutmans2002-03-161-100/+116
| | | | | | | | | | | | | - Big indentation patch. I don't have strength to do all of the changed - files but here's a good example. Please try and keep to the coding - standards even if you think they suck :) - Things to keep in mind: - void *foo and not void * foo; - if() { and not if()<TAB>{ - } else { and not {\nelse - - The streams stuff looks very cool though! :)
* New PHP streams...Wez Furlong2002-03-151-37/+558
|
* Maintain headers.Sebastian Bergmann2002-02-281-3/+2
|
* Update headers.Sebastian Bergmann2001-12-111-1/+1
|