diff options
| author | Ondřej Surý <ondrej@sury.org> | 2012-02-03 11:02:43 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2012-02-03 11:02:43 +0100 |
| commit | 5292df2401c781de56fd04835c18e11162152626 (patch) | |
| tree | 34d9215e87887fb4f97b051ac3fa239d6cf4ee89 /ext/zlib | |
| parent | 96fb2ff5760132a915766f1d9ec7c63001feacd8 (diff) | |
| download | php-5292df2401c781de56fd04835c18e11162152626.tar.gz | |
Imported Upstream version 5.4.0~rc7upstream/5.4.0_rc7
Diffstat (limited to 'ext/zlib')
| -rw-r--r-- | ext/zlib/tests/bug60761.phpt | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/ext/zlib/tests/bug60761.phpt b/ext/zlib/tests/bug60761.phpt index 7f4fffddf..823173ec2 100644 --- a/ext/zlib/tests/bug60761.phpt +++ b/ext/zlib/tests/bug60761.phpt @@ -1,35 +1,35 @@ ---TEST--
-checks zlib compression size is always the same no matter how many times its run
---SKIPIF--
-<?php if (!extension_loaded("zlib")) print "skip"; ?>
---FILE--
-<?php
-
-ob_start();
-phpinfo();
-$html = ob_get_clean();
-
-$lens = array();
-
-for ( $i=0 ; $i < 200 ; $i++ ) {
- //zlib.output_compression = On
- //zlib.output_compression_level = 9
- $compressed = gzcompress($html, 9);
-
- $len = strlen($compressed);
-
- $lens[$len] = $len;
-}
-
-$lens = array_values($lens);
-
-echo "Compressed lengths\n";
-var_dump($lens);
-
-?>
---EXPECTREGEX--
-Compressed lengths
-array(1) {
- [0]=>
- int(%d)
-}
+--TEST-- +checks zlib compression size is always the same no matter how many times its run +--SKIPIF-- +<?php if (!extension_loaded("zlib")) print "skip"; ?> +--FILE-- +<?php + +ob_start(); +phpinfo(); +$html = ob_get_clean(); + +$lens = array(); + +for ( $i=0 ; $i < 200 ; $i++ ) { + //zlib.output_compression = On + //zlib.output_compression_level = 9 + $compressed = gzcompress($html, 9); + + $len = strlen($compressed); + + $lens[$len] = $len; +} + +$lens = array_values($lens); + +echo "Compressed lengths\n"; +var_dump($lens); + +?> +--EXPECTF-- +Compressed lengths +array(1) { + [0]=> + int(%d) +} |
