Commit Graph

26 Commits

Author SHA1 Message Date
Nuno Lopes
22ad2f9538 MFB 2007-01-03 22:33:33 +00:00
Nuno Lopes
fc9b8ae1a3 MFB 2006-12-28 19:53:30 +00:00
Antony Dovgal
024d8f4376 cosmetic improvements 2006-12-05 23:03:42 +00:00
Michael Wallner
97db4007db - fix issues with ob_start("ob_gzhandler")
- add tests
2006-09-04 10:31:11 +00:00
Michael Wallner
26a013eb08 - fix tests SKIPIF 2006-08-31 16:28:46 +00:00
Michael Wallner
d6c37b7bbc - add basic zlib.output_compression tests 2006-08-31 13:52:41 +00:00
Michael Wallner
81b421f736 - implement new output API
- ported deflate/inflate code
- require zlib >= 1.2.0.4
- add gzdecode()

# if we want the filter code to benefit from zlib 1.2 the
# "streamable" API would have to be ported, too
2006-08-30 07:42:02 +00:00
Antony Dovgal
53e7c8afde the error message is different on different OSes and zlib versions 2006-08-24 11:30:28 +00:00
Nuno Lopes
0e29c9a870 upgrade the rest of the functions to Unicode (except ob_gzhandler, that I leave for Mike).
also update tests to force binary data to be passed
2006-07-27 16:31:07 +00:00
Antony Dovgal
98889cc198 add new tests 2006-06-26 23:41:51 +00:00
Sara Golemon
6d42d94715 Silence false positive test failures 2006-04-02 17:49:10 +00:00
Antony Dovgal
2c508bc1f0 fix tests 2006-02-02 15:04:22 +00:00
Antony Dovgal
b6b4514801 add missing skipif tag 2005-12-25 22:38:36 +00:00
Sara Golemon
0d8bbe7575 Sync tests with new defaults 2005-11-24 04:37:04 +00:00
Michael Wallner
b680d05c8e - add test case too 2005-10-25 15:17:11 +00:00
Ilia Alshanetsky
37015ffcfa MFB51: Fixed tests to work with ZTS builds 2005-10-20 19:22:55 +00:00
foobar
71adb81e96 nuking that file was not very good idea :) 2005-04-27 08:10:41 +00:00
foobar
d0f85d3e27 - Added test: For some reason this fails with ZTS mode and "outside-src-tree-build" 2005-04-25 14:04:00 +00:00
Sara Golemon
5289adbe99 Add zlib stream filter support 2004-07-17 00:05:31 +00:00
Marcus Boerger
d94136fc30 - Remove unused blocks 2004-05-19 08:45:46 +00:00
Stefan Roehrich
6206837929 Code cleanup:
Fixed ob_gzhandler with register_long_arrays = On.
Unified compression_coding global var (removed ob_gzip_coding).
Switched to zend_parse_parameters().
Added some tests.
2003-09-06 15:31:35 +00:00
Wez Furlong
ca6b002e4c MFB: zlib stream tests 2002-12-09 16:43:15 +00:00
Stefan Roehrich
edcb5813db (PHP gzencode) Reimplementation of gzencode(). Now works as documented
(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.
2002-03-12 13:23:58 +00:00
Stefan Roehrich
cede952f6a (PHP gzinflate) Workaround for bug #14939 (buffer error in gzinflate()).
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).
2002-03-12 13:06:40 +00:00
Thies C. Arntzen
15f55b5e56 change test-name 2001-07-13 15:49:18 +00:00
Thies C. Arntzen
d30590369a make sure all string from zlib are \0 terminated.
change one realloc to erealloc (though this code is never reached IMHO)
add regression tests
2001-07-13 15:48:37 +00:00