summaryrefslogtreecommitdiff
path: root/main/php_streams.h
Commit message (Collapse)AuthorAgeFilesLines
...
* fix some warnings.Wez Furlong2002-09-231-2/+2
|
* Revise buffer/seek code a little.Wez Furlong2002-09-231-0/+4
| | | | | | Tidy up user streams even more. Make test case quite aggressive.
* Implement read buffering in streams.Wez Furlong2002-09-231-2/+17
| | | | | | | | | | | | 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 a couple of bad pointer indirections (oops).Wez Furlong2002-09-071-1/+1
| | | | | | Lets stick to a single category of "http" for the "user_agent" context override.
* NetWare related additions/modificationsAnantha Kesari H Y2002-09-051-0/+4
|
* Add a "closing" parameter for filters to determine if a flush is the lastWez Furlong2002-08-251-5/+5
| | | | | | flush before the stream is closed. This allows filters to finish a chunk and write footers etc.
* Remove php_stream_error as discussed with Rasmus.Wez Furlong2002-08-251-4/+0
| | | | | Unify error messages for ext/ftp. (which was using php_stream_error).
* Implement filter API for streams.Wez Furlong2002-08-201-4/+68
| | | | | | | | | | | | | | | | | | Filters can be stacked onto a stream; more details will follow in docs and on php-dev. Implement "string.rot13" filter Allows the following script: $fp = fopen("file.txt", "r"); stream_filter_prepend($fp, "string.rot13"); // File contents will be subject to a rot13 transformation before // being output. fpassthru($fp); fclose($fp);
* Remove php_stream_sock_set_blocking and replace withWez Furlong2002-08-191-1/+16
| | | | | | | | | | | php_stream_set_option which can be used in a similar way as ioctl() to set options for streams. Current options include buffering and blocking support. o Buffer control is support for stdio based streams. o Blocking/non-blocking is supported for stdio and socket based streams.
* Enhance Ilia's recent patch to query the wrapper subsystem to determineWez Furlong2002-08-161-0/+4
| | | | | if a filename is a URL and thus if safe-mode checks should be skipped.
* Properly implement TSRM parameters to the new log_errorWez Furlong2002-08-111-0/+2
| | | | | | function... (Thanks Marcus!) Add a convenience macro for importing a stream from a zval.
* Introduce an error stack for wrappers, to help prevent multiple errorsWez Furlong2002-08-111-0/+7
| | | | | | | | and warnings (some of which are bogus) when there are problems opening streams. Implement sanity check on the mode used to open ftp and http connections. This fixes Bug 12004.
* macro definition fixed, guess it was the usual kind of cut&past bug?Hartmut Holzgraefe2002-06-111-1/+1
|
* - Since streams are always enabled, instead of just printing 'enabled' we tellMarkus Fischer2002-06-081-0/+4
| | | | | what streams are currently registered.
* Implement context option setting API.Wez Furlong2002-04-301-1/+13
| | | | | | | 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.
* Always initialize wrappers, regardless of PG(allow_url_fopen).Wez Furlong2002-04-161-5/+26
| | | | | | | | | | | | 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
|
* fix segfaultWez Furlong2002-04-121-1/+1
|
* Implement stream context and status notification system.Wez Furlong2002-04-101-5/+96
| | | | | | 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-2/+21
| | | | | # What was phase 2?
* Phase 1 of wrapper OO cleanup.Wez Furlong2002-03-241-8/+10
| | | | | # Collecting underpants
* Convert the gzfile related functions into aliases for their equivalentsWez Furlong2002-03-211-0/+5
| | | | | | | | | | 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.
* Make state parameter of php_strip_tags passed by reference.Wez Furlong2002-03-201-0/+1
| | | | | Move state tracking to stream structure.
* Streams are all tracked as resources now.Wez Furlong2002-03-201-0/+20
| | | | | | Add some logic that will help track down leaks when debug is enabled.
* Improve behaviour of the stream casting operation.Wez Furlong2002-03-191-0/+5
| | | | | Improve interaction with fopencookie.
* fix for bug #16168Wez Furlong2002-03-191-3/+5
|
* register some constants for user streamsWez Furlong2002-03-191-1/+0
|
* Implement user-space streams.Wez Furlong2002-03-191-1/+8
| | | | | | There's probably room for improvement, docs will following some time this week.
* Fix build under Release_TSZeev Suraski2002-03-181-9/+9
| | | | | Maybe separating TSRMLS away wasn't such a good idea (sorry Wez :)
* TSRMLS related work on streams, as discussed with Zeev.Wez Furlong2002-03-181-63/+89
| | | | | | # Should be the last "broad" commit for a while # Don't forget to make clean ; make
* Fix the build and all of the outstanding VC++ warningsZeev Suraski2002-03-181-4/+4
|
* Streams now make more use of the memory manager, so tracking downWez Furlong2002-03-171-15/+81
| | | | | | 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-1/+24
| | | | | | | | | 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.
* Hopefully fix resource usage so that we have no leaks and don't segfault.Wez Furlong2002-03-161-2/+3
|
* Tweak the API to be more consistent.Wez Furlong2002-03-161-1/+1
| | | | | Update docs.
* some minor docu-in-header changesWez Furlong2002-03-161-2/+14
|
* Allow php_stream_copy_to_stream to do nothing when used with codeWez Furlong2002-03-161-1/+2
| | | | | that calculates a max length of zero. (Thanks again Marcus).
* more *'sWez Furlong2002-03-161-10/+10
|
* - More whitespace. I really can't do the other files though...Andi Gutmans2002-03-161-40/+40
|
* New PHP streams...Wez Furlong2002-03-151-6/+49
|
* Maintain headers.Sebastian Bergmann2002-02-281-3/+2
|
* Update headers.Sebastian Bergmann2001-12-111-1/+1
|
* - Don't wrap lines... this is annoying while coding.Derick Rethans2001-09-091-2/+2
|
* Fix folding and clean up some extensionsRasmus Lerdorf2001-06-061-3/+5
|
* Nuke buffering from php_streams, move connect_nonb() from fsock.c to network.cWez Furlong2001-05-051-43/+23
| | | | | | | | and rename to php_connect_nonb(). Use php_connect_nonb() instead of connect() in php_hostconnect() -> timeouts should now work in php_hostconnect(). sock streams abstraction now uses php_sockbuf as the "abstract" pointer.
* Added files for PHP streamsWez Furlong2001-04-171-0/+127