summaryrefslogtreecommitdiff
path: root/ext/zlib
Commit message (Collapse)AuthorAgeFilesLines
* Changed my mind.Yasuo Ohgaki2002-08-111-2/+0
| | | | | | | Let users decided whether users want larger chunk size or not. @ Changed zlib.output_compression behavior. If larger chunk is preferred, enable output_buffering also. (Marcus, Yasuo)
* Generally speaking, sending packets less than 1KB is not efficient.Yasuo Ohgaki2002-08-111-1/+3
| | | | | | We're better to take some benchmarks see if removing extra buffer is actually a good idea or not.
* corrected handling of internal output buffersMarcus Boerger2002-08-101-3/+1
| | | | | minor fixs
* no need to start additional first buffer when output compression is first bufferMarcus Boerger2002-08-101-1/+2
|
* should fix all windows warningsMarcus Boerger2002-08-101-2/+2
|
* Improved handling of output buffers (see news)\n#No trim for the string ↵Marcus Boerger2002-08-092-0/+19
| | | | parameter...
* Commit patch as discussed on LinuxTag and posted to php-dev in June.Stefan Roehrich2002-07-282-20/+34
| | | | | | | | | | Disables zlib.output_compression for scripts with image/ content-type header (fixes bug #16109) and makes it possible to switch zlib.output_compression during script execution before the headers are sent. @- zlib.output_compression is disabled for "image/" content-type @ headers and can be changed during script execution. (Stefan)
* - oops... read before commit :)Derick Rethans2002-06-181-1/+1
|
* - It doesn't work from within a script... so we disallow itDerick Rethans2002-06-181-1/+1
|
* Added "Vary: Accept-Encoding" header to zlib.output_compressionStefan Roehrich2002-06-021-0/+6
| | | | | | | | | | compressed output as with obgzhandler(). @ If zlib.output_compression is enabled and a page is compressed @ a "Vary: Accept-Encoding" header is added. (Stefan) # obgzhandler() sends this header, I think it is recommened by # RFC 2616. If there are problems (e.g. with some browsers) # it should be reverted.
* Move Content-Length: header handling from zlib.c to output.cYasuo Ohgaki2002-05-021-18/+3
| | | | | | When output buffer is enabled and header can be sent, Content-Length: header is added always from now on.
* s/len/xln/ was necessary hereSascha Schumann2002-04-271-2/+2
| | | | | Noticed by: Charles O Parks III
* Use a single macro to set cl headerSascha Schumann2002-04-271-12/+16
|
* @ - If possible set Content-Length header in zlib.output_compression mode. ↵Thies C. Arntzen2002-04-271-1/+8
| | | | (thies)
* Make scheme part decoding rfc2396 compliant.Wez Furlong2002-04-192-3/+3
| | | | | | 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-162-6/+6
| | | | | | | | | | | | 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
* remove old codeWez Furlong2002-04-161-13/+0
|
* Do NOT use C++ comments in C code.foobar2002-04-121-2/+0
|
* Removing a unused local variable.Frank M. Kromann2002-04-121-2/+2
| | | | | Setting the size before returning the value in readgzfile
* Implement stream context and status notification system.Wez Furlong2002-04-103-5/+6
| | | | | | 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/+2
| | | | | | | 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.
* @Add zlib.output_compression_level option (Stig)Stig Bakken2002-04-052-9/+30
|
* Fix gzip/bz2 builds for WindowsZeev Suraski2002-04-052-23/+23
|
* Phase 3 of OO wrapper cleanupWez Furlong2002-03-281-1/+2
| | | | | # What was phase 2?
* Phase 1 of wrapper OO cleanup.Wez Furlong2002-03-243-7/+11
| | | | | # Collecting underpants
* Require that wrappers use <protocol>://<path> to avoidWez Furlong2002-03-211-2/+2
| | | | | | ambiguities when filenames have ':' characters. This slightly breaks BC with the old style zlib: wrapper.
* Implement bz2 streams and bz2: wrapper.Wez Furlong2002-03-211-1/+8
| | | | | | | | You can now do this: copy("zlib:src.gz", "bz2:dest.bz2"); As with zlib, most of the functions with counterparts in file.c are now aliases to those functions.
* really nuke it...Wez Furlong2002-03-211-3/+0
|
* Convert the gzfile related functions into aliases for their equivalentsWez Furlong2002-03-213-403/+41
| | | | | | | | | | 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-1/+1
| | | | | Move state tracking to stream structure.
* Streams are all tracked as resources now.Wez Furlong2002-03-201-8/+2
| | | | | | Add some logic that will help track down leaks when debug is enabled.
* Add parameter here too...Wez Furlong2002-03-201-1/+2
|
* add forgotten parameterWez Furlong2002-03-202-2/+2
|
* Implement user-space streams.Wez Furlong2002-03-191-2/+0
| | | | | | 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-183-9/+9
| | | | | | # Should be the last "broad" commit for a while # Don't forget to make clean ; make
* fix warningWez Furlong2002-03-181-1/+1
|
* Update .dspStanislav Malyshev2002-03-181-0/+4
|
* Fix the build and all of the outstanding VC++ warningsZeev Suraski2002-03-181-1/+1
|
* Streams now make more use of the memory manager, so tracking downWez Furlong2002-03-173-7/+6
| | | | | | leaking streams should be easier. # I hate these big commits
* Fix some issues with gzFile and fsockopen.Wez Furlong2002-03-162-7/+6
|
* Hopefully fix resource usage so that we have no leaks and don't segfault.Wez Furlong2002-03-161-6/+7
|
* change * formattingWez Furlong2002-03-163-17/+17
|
* the 'setup' script was removed more than two years ago.jim winstead2002-03-161-7/+0
| | | | | these can be safely removed from the 4.2 branch, too.
* New PHP streams...Wez Furlong2002-03-153-73/+105
|
* missed zlib.cSascha Schumann2002-03-121-1/+1
|
* php_new_extensionSascha Schumann2002-03-122-8/+1
|
* (PHP gzencode) Reimplementation of gzencode(). Now works as documentedStefan Roehrich2002-03-122-23/+93
| | | | | | | | | | | (gzencode(string data [, int level [, int encoding_mode]])), should fix #15930. @- The second parameter of gzencode() now is the compression level like @ in the documentation. The encoding mode is a third (optional) parameter. # Rework of gzencode(), output should be closer to real gzip output. # I think in the old version there could be some problems with # this function and output compression, should be fixed, too.
* (PHP gzinflate) Workaround for bug #14939 (buffer error in gzinflate()).Stefan Roehrich2002-03-122-2/+11
| | | | | | | | | | | Fixed prototype and added test for #14939. # We have extra \0 if the input comes directly from gzdeflate() # so give one extra byte as length to workaround behaviour of zlib. # I want to avoid copying the input, but if there are problems, # please tell (see my message <20020310175611.GA4472@stefan.roehri.ch> to # php-dev).
* Added ob_get_status() to get array of buffers and it's status.Yasuo Ohgaki2002-03-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | (DO NOT document this function yet) Fixed crash bug with ob_end_*() function. ob_end_*() will not delete buffers that may not be deleted. php_start_ob_buffer() and php_ob_set_internal_handler() takes parameter for if the buffer created may be deleted or not. Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be deleted until script finshes. Changed ob_*() function that have void return type to bool. All ob_*() functions return TRUE for success, FALSE for failure. @ - Added ob_get_status() to get array of buffers and it's status. (Yasuo) @ - Fixed crash bug with ob_end_*() function. ob_end_*() will not delete @ buffers that may not be deleted. (Yasuo) @ - Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be @ deleted until script finshes. (Yasuo) @ - Changed ob_*() function that have void return type to bool. All ob_*() @ functions return TRUE for success, FALSE for failure. (Yasuo)
* Maintain headers.Sebastian Bergmann2002-02-281-1/+1
|