diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 17:23:43 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 19:44:14 +0200 |
commit | 17ccbeec3242b80f84fbf6b3acd58421ef003b02 (patch) | |
tree | 8fed8d7515c6603fd4a50eb0f8177883bc6da336 /ext/zlib | |
parent | cc7215f48f66982f0b7799c47d8fa4c09a32a3c7 (diff) | |
download | php-git-17ccbeec3242b80f84fbf6b3acd58421ef003b02.tar.gz |
Trim trailing whitespace in *.phpt
Diffstat (limited to 'ext/zlib')
112 files changed, 415 insertions, 415 deletions
diff --git a/ext/zlib/tests/004-mb.phpt b/ext/zlib/tests/004-mb.phpt index a9371f414f..92f7db1b70 100644 --- a/ext/zlib/tests/004-mb.phpt +++ b/ext/zlib/tests/004-mb.phpt @@ -14,7 +14,7 @@ var_dump(gzfile(dirname(__FILE__)."/004私はガラスを食べられます.txt. echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gzfile() expects at least 1 parameter, 0 given in %s on line %d NULL diff --git a/ext/zlib/tests/004.phpt b/ext/zlib/tests/004.phpt index ebc7d82b95..b8d0f0eccd 100644 --- a/ext/zlib/tests/004.phpt +++ b/ext/zlib/tests/004.phpt @@ -14,7 +14,7 @@ var_dump(gzfile(dirname(__FILE__)."/004.txt.gz", 1)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gzfile() expects at least 1 parameter, 0 given in %s on line %d NULL diff --git a/ext/zlib/tests/005.phpt b/ext/zlib/tests/005.phpt index 84fc3b5f10..24d272ece0 100644 --- a/ext/zlib/tests/005.phpt +++ b/ext/zlib/tests/005.phpt @@ -1,5 +1,5 @@ --TEST-- -gzcompress()/gzuncompress() and invalid params +gzcompress()/gzuncompress() and invalid params --SKIPIF-- <?php if (!extension_loaded("zlib")) print "skip"; ?> --FILE-- diff --git a/ext/zlib/tests/006.phpt b/ext/zlib/tests/006.phpt index 8c03ea068d..0d082092ca 100644 --- a/ext/zlib/tests/006.phpt +++ b/ext/zlib/tests/006.phpt @@ -1,5 +1,5 @@ --TEST-- -gzdeflate()/gzinflate() and invalid params +gzdeflate()/gzinflate() and invalid params --SKIPIF-- <?php if (!extension_loaded("zlib")) print "skip"; ?> --FILE-- @@ -34,7 +34,7 @@ var_dump(gzinflate($data2)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gzdeflate() expects at least 1 parameter, 0 given in %s on line %d NULL diff --git a/ext/zlib/tests/007.phpt b/ext/zlib/tests/007.phpt index c55d78d126..6c42bf67db 100644 --- a/ext/zlib/tests/007.phpt +++ b/ext/zlib/tests/007.phpt @@ -26,7 +26,7 @@ var_dump(gzencode($string, 9, ZLIB_ENCODING_DEFLATE)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gzencode() expects at least 1 parameter, 0 given in %s on line %d NULL diff --git a/ext/zlib/tests/bug51269.phpt b/ext/zlib/tests/bug51269.phpt index 89ad7b6269..97b2e55bca 100644 --- a/ext/zlib/tests/bug51269.phpt +++ b/ext/zlib/tests/bug51269.phpt @@ -5,7 +5,7 @@ zlib.output_compression=1 --ENV-- HTTP_ACCEPT_ENCODING=gzip --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) die("skip zlib required"); ?> --FILE-- diff --git a/ext/zlib/tests/bug60761.phpt b/ext/zlib/tests/bug60761.phpt index 1e9fe69a01..3e14bc2cdb 100644 --- a/ext/zlib/tests/bug60761.phpt +++ b/ext/zlib/tests/bug60761.phpt @@ -28,21 +28,21 @@ for ( $i=0 ; $i < 100 ; $i++ ) { $len = strlen($html); $lens[$len] = $len; -} - +} + $lens = array_values($lens); echo "Compressed Lengths\n"; // pass == only ONE length for all iterations // (length didn't change during run) -// +// // hard to anticipate what 'correct' length should be since // return value of phpinfo() will vary between installations... // just check that there is only one length -// +// var_dump($lens); // show lengths to help triage in case of failure - + // expected headers since its CGI ?> diff --git a/ext/zlib/tests/bug61139.phpt b/ext/zlib/tests/bug61139.phpt index 71961a64dc..ab7c74e9cc 100644 --- a/ext/zlib/tests/bug61139.phpt +++ b/ext/zlib/tests/bug61139.phpt @@ -1,18 +1,18 @@ --TEST-- Bug #61139 (gzopen leaks when specifying invalid mode) --SKIPIF-- -<?php +<?php if (!extension_loaded('zlib')) { - die('skip - zlib extension not loaded'); -} + die('skip - zlib extension not loaded'); +} ?> --FILE-- <?php gzopen('someFile', 'c'); --CLEAN-- -<?php - unlink('someFile'); +<?php + unlink('someFile'); ?> --EXPECTF-- Warning: gzopen(): gzopen failed in %s on line %d diff --git a/ext/zlib/tests/bug61443.phpt b/ext/zlib/tests/bug61443.phpt index ea2fa68c89..2659a0fc22 100644 --- a/ext/zlib/tests/bug61443.phpt +++ b/ext/zlib/tests/bug61443.phpt @@ -6,7 +6,7 @@ extension_loaded("zlib") or die("skip"); ?> --FILE-- <?php -ob_start(); echo "foo\n"; ob_get_clean(); +ob_start(); echo "foo\n"; ob_get_clean(); if(!headers_sent()) ini_set('zlib.output_compression', true); echo "end\n"; ?> DONE diff --git a/ext/zlib/tests/bug_34821.phpt b/ext/zlib/tests/bug_34821.phpt index b378ec4097..53ef4d229e 100644 --- a/ext/zlib/tests/bug_34821.phpt +++ b/ext/zlib/tests/bug_34821.phpt @@ -7,9 +7,9 @@ Bug #34821 (zlib encoders fail on widely varying binary data) // test 50 bytes to 50k $b = array( - 50, - 500, - 5000, + 50, + 500, + 5000, 50000, // 1000000, // works, but test would take too long ); diff --git a/ext/zlib/tests/bug_52944.phpt b/ext/zlib/tests/bug_52944.phpt index 68bd53791d..4edc147db9 100644 --- a/ext/zlib/tests/bug_52944.phpt +++ b/ext/zlib/tests/bug_52944.phpt @@ -6,7 +6,7 @@ Bug #52944 (segfault with zlib filter and corrupted data) allow_url_fopen=1 --FILE-- <?php -/* NOTE this test can fail on asm builds of zlib 1.2.5 or +/* NOTE this test can fail on asm builds of zlib 1.2.5 or 1.2.7 on at least Windows and Darwin. Using unoptimized zlib build fixes the issue. */ diff --git a/ext/zlib/tests/deflate_add_basic.phpt b/ext/zlib/tests/deflate_add_basic.phpt index 05fcb037bd..d530a21e98 100644 --- a/ext/zlib/tests/deflate_add_basic.phpt +++ b/ext/zlib/tests/deflate_add_basic.phpt @@ -1,9 +1,9 @@ --TEST-- Test incremental deflate_add() functionality --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/deflate_add_block_v123.phpt b/ext/zlib/tests/deflate_add_block_v123.phpt index 3fe03f99ba..786f8aed56 100644 --- a/ext/zlib/tests/deflate_add_block_v123.phpt +++ b/ext/zlib/tests/deflate_add_block_v123.phpt @@ -1,7 +1,7 @@ --TEST-- Test deflate_add() errors with ZLIB_BLOCK in zlib < 1.2.4 --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { print "skip - ZLIB extension not loaded"; } diff --git a/ext/zlib/tests/deflate_add_buffer_full.phpt b/ext/zlib/tests/deflate_add_buffer_full.phpt index a2b3fc4ab0..7ba0f2e3cd 100644 --- a/ext/zlib/tests/deflate_add_buffer_full.phpt +++ b/ext/zlib/tests/deflate_add_buffer_full.phpt @@ -1,9 +1,9 @@ --TEST-- Test deflate_add() buffer issue with data that fills deflate buffer while using ZLIB_SYNC_FLUSH on ZLIB_ENCODING_RAW. --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/deflate_add_error.phpt b/ext/zlib/tests/deflate_add_error.phpt index 159f1648c9..e02cec3832 100644 --- a/ext/zlib/tests/deflate_add_error.phpt +++ b/ext/zlib/tests/deflate_add_error.phpt @@ -1,9 +1,9 @@ --TEST-- Test incremental deflate_add() error functionality --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/deflate_init_error.phpt b/ext/zlib/tests/deflate_init_error.phpt index 424272c124..e7166455a9 100644 --- a/ext/zlib/tests/deflate_init_error.phpt +++ b/ext/zlib/tests/deflate_init_error.phpt @@ -1,9 +1,9 @@ --TEST-- Test deflate_init() error --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/deflate_init_reuse.phpt b/ext/zlib/tests/deflate_init_reuse.phpt index b351f496f7..0b807c99f8 100644 --- a/ext/zlib/tests/deflate_init_reuse.phpt +++ b/ext/zlib/tests/deflate_init_reuse.phpt @@ -1,9 +1,9 @@ --TEST-- Test incremental deflate_init() context reuse --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzclose_basic.phpt b/ext/zlib/tests/gzclose_basic.phpt index acad3b2f07..9a84111781 100644 --- a/ext/zlib/tests/gzclose_basic.phpt +++ b/ext/zlib/tests/gzclose_basic.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzclose() by calling it with its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzclose_error.phpt b/ext/zlib/tests/gzclose_error.phpt index ec4b6eb246..3e1a035060 100644 --- a/ext/zlib/tests/gzclose_error.phpt +++ b/ext/zlib/tests/gzclose_error.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzclose() by calling it more than or less than its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- @@ -11,7 +11,7 @@ if (!extension_loaded("zlib")) { $f = dirname(__FILE__)."/004.txt.gz"; $h = gzopen($f, 'r'); -$extra_arg = 'nothing'; +$extra_arg = 'nothing'; diff --git a/ext/zlib/tests/gzcompress_basic1.phpt b/ext/zlib/tests/gzcompress_basic1.phpt index 1506d0c1ee..9d5fcedcf8 100644 --- a/ext/zlib/tests/gzcompress_basic1.phpt +++ b/ext/zlib/tests/gzcompress_basic1.phpt @@ -1,17 +1,17 @@ --TEST-- -Test gzcompress() function : basic functionality +Test gzcompress() function : basic functionality --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : string gzcompress(string data [, int level, [int encoding]]) - * Description: Gzip-compress a string + * Description: Gzip-compress a string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ /* diff --git a/ext/zlib/tests/gzcompress_error1.phpt b/ext/zlib/tests/gzcompress_error1.phpt index 9db0a56fa1..3f742a4dca 100644 --- a/ext/zlib/tests/gzcompress_error1.phpt +++ b/ext/zlib/tests/gzcompress_error1.phpt @@ -1,17 +1,17 @@ --TEST-- -Test gzcompress() function : error conditions +Test gzcompress() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : string gzcompress(string data [, int level, [int encoding]]) - * Description: Gzip-compress a string + * Description: Gzip-compress a string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ /* @@ -45,7 +45,7 @@ echo "\n-- Testing with incorrect parameters --\n"; class Tester { function Hello() { - echo "Hello\n"; + echo "Hello\n"; } } diff --git a/ext/zlib/tests/gzcompress_variation1.phpt b/ext/zlib/tests/gzcompress_variation1.phpt index 7a8457c24f..71adab1cbf 100644 --- a/ext/zlib/tests/gzcompress_variation1.phpt +++ b/ext/zlib/tests/gzcompress_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- -Test gzcompress() function : variation +Test gzcompress() function : variation --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : string gzcompress(string data [, int level, [int encoding]]) - * Description: Gzip-compress a string + * Description: Gzip-compress a string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ include(dirname(__FILE__) . '/data.inc'); diff --git a/ext/zlib/tests/gzdeflate_basic1.phpt b/ext/zlib/tests/gzdeflate_basic1.phpt index a2ae0f01da..5f25a1880b 100644 --- a/ext/zlib/tests/gzdeflate_basic1.phpt +++ b/ext/zlib/tests/gzdeflate_basic1.phpt @@ -1,17 +1,17 @@ --TEST-- -Test gzdeflate() function : basic functionality +Test gzdeflate() function : basic functionality --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : string gzdeflate(string data [, int level, [int encoding]]) - * Description: Gzip-compress a string + * Description: Gzip-compress a string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ /* diff --git a/ext/zlib/tests/gzdeflate_error1.phpt b/ext/zlib/tests/gzdeflate_error1.phpt index 740054269f..0b3f3dab9c 100644 --- a/ext/zlib/tests/gzdeflate_error1.phpt +++ b/ext/zlib/tests/gzdeflate_error1.phpt @@ -1,17 +1,17 @@ --TEST-- -Test gzdeflate() function : error conditions +Test gzdeflate() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : string gzdeflate(string data [, int level, [int encoding]]) - * Description: Gzip-compress a string + * Description: Gzip-compress a string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ /* @@ -33,16 +33,16 @@ $extra_arg = 10; var_dump( gzdeflate($data, $level, $encoding, $extra_arg) ); echo "\n-- Testing with incorrect compression level --\n"; -$bad_level = 99; +$bad_level = 99; var_dump(gzdeflate($data, $bad_level)); echo "\n-- Testing with incorrect encoding --\n"; -$bad_encoding = 99; +$bad_encoding = 99; var_dump(gzdeflate($data, $level, $bad_encoding)); class Tester { function Hello() { - echo "Hello\n"; + echo "Hello\n"; } } diff --git a/ext/zlib/tests/gzdeflate_variation1.phpt b/ext/zlib/tests/gzdeflate_variation1.phpt index 75eb16e03d..dc8b9d1fcd 100644 --- a/ext/zlib/tests/gzdeflate_variation1.phpt +++ b/ext/zlib/tests/gzdeflate_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- -Test gzdeflate() function : variation +Test gzdeflate() function : variation --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : string gzdeflate(string data [, int level]) - * Description: Gzip-compress a string + * Description: Gzip-compress a string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ include(dirname(__FILE__) . '/data.inc'); diff --git a/ext/zlib/tests/gzencode_basic1.phpt b/ext/zlib/tests/gzencode_basic1.phpt index 3c0ec559e9..c6040135f0 100644 --- a/ext/zlib/tests/gzencode_basic1.phpt +++ b/ext/zlib/tests/gzencode_basic1.phpt @@ -1,17 +1,17 @@ --TEST-- -Test gzencode() function : basic functionality +Test gzencode() function : basic functionality --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : string gzencode ( string $data [, int $level [, int $encoding_mode ]] ) - * Description: Gzip-compress a string + * Description: Gzip-compress a string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ /* @@ -33,10 +33,10 @@ $smallstring = "A small string to compress\n"; for($i = -1; $i < 10; $i++) { echo "-- Compression level $i --\n"; $output = gzencode($data, $i); - - // Clear OS byte before encode + + // Clear OS byte before encode $output[9] = "\x00"; - + var_dump(md5($output)); } @@ -44,10 +44,10 @@ for($i = -1; $i < 10; $i++) { for($i = -1; $i < 10; $i++) { echo "-- Compression level $i --\n"; $output = gzencode($smallstring, $i); - - // Clear OS byte before encode + + // Clear OS byte before encode $output[9] = "\x00"; - + var_dump(md5($output)); } diff --git a/ext/zlib/tests/gzencode_error1.phpt b/ext/zlib/tests/gzencode_error1.phpt index 5a16ffbc5f..2c4a562634 100644 --- a/ext/zlib/tests/gzencode_error1.phpt +++ b/ext/zlib/tests/gzencode_error1.phpt @@ -1,17 +1,17 @@ --TEST-- Test gzencode() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} -?> + print "skip - ZLIB extension not loaded"; +} +?> --FILE-- <?php /* Prototype : string gzencode ( string $data [, int $level [, int $encoding_mode ]] ) - * Description: Gzip-compress a string + * Description: Gzip-compress a string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ /* @@ -37,12 +37,12 @@ $bad_level = 99; var_dump(gzencode($data, $bad_level)); echo "\n-- Testing with incorrect encoding_mode --\n"; -$bad_mode = 99; +$bad_mode = 99; var_dump(gzencode($data, $level, $bad_mode)); class Tester { function Hello() { - echo "Hello\n"; + echo "Hello\n"; } } diff --git a/ext/zlib/tests/gzencode_variation1-win32.phpt b/ext/zlib/tests/gzencode_variation1-win32.phpt index 5ff577838b..4feb7d653c 100644 --- a/ext/zlib/tests/gzencode_variation1-win32.phpt +++ b/ext/zlib/tests/gzencode_variation1-win32.phpt @@ -1,28 +1,28 @@ --TEST-- Test gzencode() function : variation --SKIPIF-- -<?php +<?php if( substr(PHP_OS, 0, 3) != "WIN" ) { die("skip only for Windows"); } if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} -?> + print "skip - ZLIB extension not loaded"; +} +?> --FILE-- <?php /* Prototype : string gzencode ( string $data [, int $level [, int $encoding_mode ]] ) - * Description: Gzip-compress a string + * Description: Gzip-compress a string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ if(!function_exists("gzdecode")) { - function gzdecode($data) - { - return gzinflate(substr($data,10,-8)); + function gzdecode($data) + { + return gzinflate(substr($data,10,-8)); } } diff --git a/ext/zlib/tests/gzencode_variation1.phpt b/ext/zlib/tests/gzencode_variation1.phpt index ef1d3a77f7..1c82da98f8 100644 --- a/ext/zlib/tests/gzencode_variation1.phpt +++ b/ext/zlib/tests/gzencode_variation1.phpt @@ -1,22 +1,22 @@ --TEST-- Test gzencode() function : variation --SKIPIF-- -<?php +<?php if( substr(PHP_OS, 0, 3) == "WIN" ) { die("skip.. Do not run on Windows"); } if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} -?> + print "skip - ZLIB extension not loaded"; +} +?> --FILE-- <?php /* Prototype : string gzencode ( string $data [, int $level [, int $encoding_mode ]] ) - * Description: Gzip-compress a string + * Description: Gzip-compress a string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ include(dirname(__FILE__) . '/data.inc'); diff --git a/ext/zlib/tests/gzencode_variation2-win32.phpt b/ext/zlib/tests/gzencode_variation2-win32.phpt index e46ee23523..929d81d74b 100644 --- a/ext/zlib/tests/gzencode_variation2-win32.phpt +++ b/ext/zlib/tests/gzencode_variation2-win32.phpt @@ -1,27 +1,27 @@ --TEST-- Test gzencode() function : variation - verify header contents with all encoding modes --SKIPIF-- -<?php +<?php if( substr(PHP_OS, 0, 3) != "WIN" ) { die("skip.. only for Windows"); } if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} include 'func.inc'; if (version_compare(get_zlib_version(), "1.2.11") < 0) { die("skip - at least zlib 1.2.11 required, got " . get_zlib_version()); } -?> +?> --FILE-- <?php /* Prototype : string gzencode ( string $data [, int $level [, int $encoding_mode ]] ) - * Description: Gzip-compress a string + * Description: Gzip-compress a string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gzencode() : variation ***\n"; @@ -30,7 +30,7 @@ $data = "A small string to encode\n"; echo "\n-- Testing with each encoding_mode --\n"; var_dump(bin2hex(gzencode($data, -1))); -var_dump(bin2hex(gzencode($data, -1, FORCE_GZIP))); +var_dump(bin2hex(gzencode($data, -1, FORCE_GZIP))); var_dump(bin2hex(gzencode($data, -1, FORCE_DEFLATE))); ?> diff --git a/ext/zlib/tests/gzencode_variation2.phpt b/ext/zlib/tests/gzencode_variation2.phpt index de63b7170f..eabb1cfcf3 100644 --- a/ext/zlib/tests/gzencode_variation2.phpt +++ b/ext/zlib/tests/gzencode_variation2.phpt @@ -1,22 +1,22 @@ --TEST-- Test gzencode() function : variation - verify header contents with all encoding modes --SKIPIF-- -<?php +<?php if( substr(PHP_OS, 0, 3) == "WIN" ) { die("skip.. Do not run on Windows"); } if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} -?> + print "skip - ZLIB extension not loaded"; +} +?> --FILE-- <?php /* Prototype : string gzencode ( string $data [, int $level [, int $encoding_mode ]] ) - * Description: Gzip-compress a string + * Description: Gzip-compress a string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gzencode() : variation ***\n"; @@ -25,7 +25,7 @@ $data = "A small string to encode\n"; echo "\n-- Testing with each encoding_mode --\n"; var_dump(bin2hex(gzencode($data, -1))); -var_dump(bin2hex(gzencode($data, -1, FORCE_GZIP))); +var_dump(bin2hex(gzencode($data, -1, FORCE_GZIP))); var_dump(bin2hex(gzencode($data, -1, FORCE_DEFLATE))); ?> diff --git a/ext/zlib/tests/gzeof_basic.phpt b/ext/zlib/tests/gzeof_basic.phpt index f5d2617a9f..4b2bb1aec9 100644 --- a/ext/zlib/tests/gzeof_basic.phpt +++ b/ext/zlib/tests/gzeof_basic.phpt @@ -1,9 +1,9 @@ --TEST-- Test function feof() by calling it with its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- @@ -18,7 +18,7 @@ $h = gzopen($f, 'r'); var_dump(gzeof($h)); gzpassthru($h); var_dump(gzeof($h)); -gzclose($h); +gzclose($h); echo "\n-- test 2 --\n"; $h = gzopen($f, 'r'); @@ -31,7 +31,7 @@ var_dump(gzeof($h)); echo "reading 20 characters. eof should be true still\n"; gzread($h, 20)."\n"; var_dump(gzeof($h)); -gzclose($h); +gzclose($h); diff --git a/ext/zlib/tests/gzeof_error.phpt b/ext/zlib/tests/gzeof_error.phpt index af0f7c17fa..a495b9b646 100644 --- a/ext/zlib/tests/gzeof_error.phpt +++ b/ext/zlib/tests/gzeof_error.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzeof() by calling it more than or less than its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzeof_variation1.phpt b/ext/zlib/tests/gzeof_variation1.phpt index ba0d8e5932..9e30775928 100644 --- a/ext/zlib/tests/gzeof_variation1.phpt +++ b/ext/zlib/tests/gzeof_variation1.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzeof while writing. --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzfile_error.phpt b/ext/zlib/tests/gzfile_error.phpt index 6089f3ebfa..cea150a86d 100644 --- a/ext/zlib/tests/gzfile_error.phpt +++ b/ext/zlib/tests/gzfile_error.phpt @@ -10,7 +10,7 @@ if (!extension_loaded('zlib')) die ('skip zlib extension not available in this b $filename = dirname(__FILE__)."/004.txt.gz"; $use_include_path = false; -$extra_arg = 'nothing'; +$extra_arg = 'nothing'; var_dump(gzfile( $filename, $use_include_path, $extra_arg ) ); diff --git a/ext/zlib/tests/gzfile_variation15.phpt b/ext/zlib/tests/gzfile_variation15.phpt index 08360da54d..54dfedf05f 100644 --- a/ext/zlib/tests/gzfile_variation15.phpt +++ b/ext/zlib/tests/gzfile_variation15.phpt @@ -1,17 +1,17 @@ --TEST-- Test gzfile() function : variation: use include path (relative directories in path) --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php require_once('reading_include_path.inc'); //define the files to go into these directories, create one in dir2 -set_include_path($newIncludePath); +set_include_path($newIncludePath); test_gzfile(); restore_include_path(); @@ -27,7 +27,7 @@ rmdir($thisTestDir); function test_gzfile() { global $scriptFile, $secondFile, $firstFile, $filename; - + // create a file in the middle directory $h = gzopen($secondFile, "w"); gzwrite($h, "This is a file in dir2"); @@ -41,36 +41,36 @@ function test_gzfile() { $h = gzopen($firstFile, "w"); gzwrite($h, "This is a file in dir1"); gzclose($h); - + //should now read dir1 file var_dump(gzfile($filename, true)); echo "\n"; - + // create a file in working directory $h = gzopen($filename, "w"); gzwrite($h, "This is a file in working dir"); gzclose($h); - + //should still read dir1 file var_dump(gzfile($filename, true)); echo "\n"; - + unlink($firstFile); unlink($secondFile); - + //should read the file in working directory var_dump(gzfile($filename, true)); echo "\n"; - + // create a file in the script directory $h = gzopen($scriptFile, "w"); gzwrite($h, "This is a file in script dir"); gzclose($h); - + //should read the file in script dir var_dump(gzfile($filename, true)); echo "\n"; - + //cleanup unlink($filename); unlink($scriptFile); diff --git a/ext/zlib/tests/gzfile_variation2.phpt b/ext/zlib/tests/gzfile_variation2.phpt index 36d1d4c71b..8171a81429 100644 --- a/ext/zlib/tests/gzfile_variation2.phpt +++ b/ext/zlib/tests/gzfile_variation2.phpt @@ -8,7 +8,7 @@ if (!extension_loaded('zlib')) die ('skip zlib extension not available in this b <?php -$use_include_path = +$use_include_path = $variation = array( diff --git a/ext/zlib/tests/gzgetc_basic.phpt b/ext/zlib/tests/gzgetc_basic.phpt index 5c814e0d1a..ad8684381b 100644 --- a/ext/zlib/tests/gzgetc_basic.phpt +++ b/ext/zlib/tests/gzgetc_basic.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzgetc() by calling it with its expected arguments zlib 1.2.5 --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } include 'func.inc'; if (version_compare(get_zlib_version(), '1.2.5') > 0) { diff --git a/ext/zlib/tests/gzgetc_basic_1.phpt b/ext/zlib/tests/gzgetc_basic_1.phpt index 59e3eb6233..24d847eb64 100644 --- a/ext/zlib/tests/gzgetc_basic_1.phpt +++ b/ext/zlib/tests/gzgetc_basic_1.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzgetc() by calling it with its expected arguments zlib 1.2.7 --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } include 'func.inc'; if (version_compare(get_zlib_version(), '1.2.7') < 0) { diff --git a/ext/zlib/tests/gzgetc_error.phpt b/ext/zlib/tests/gzgetc_error.phpt index cbeabe3a31..2298fa358a 100644 --- a/ext/zlib/tests/gzgetc_error.phpt +++ b/ext/zlib/tests/gzgetc_error.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzgetc() by calling it more than or less than its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzgets_basic.phpt b/ext/zlib/tests/gzgets_basic.phpt index 3ebc759007..0e683d1b32 100644 --- a/ext/zlib/tests/gzgets_basic.phpt +++ b/ext/zlib/tests/gzgets_basic.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzgets() by calling it with its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzgets_error.phpt b/ext/zlib/tests/gzgets_error.phpt index fe224f1ef4..10b5f0db29 100644 --- a/ext/zlib/tests/gzgets_error.phpt +++ b/ext/zlib/tests/gzgets_error.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzgets() by calling it more than or less than its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzinflate_error1.phpt b/ext/zlib/tests/gzinflate_error1.phpt index 822d9b8129..f3f9fc9725 100644 --- a/ext/zlib/tests/gzinflate_error1.phpt +++ b/ext/zlib/tests/gzinflate_error1.phpt @@ -1,17 +1,17 @@ --TEST-- -Test gzinflate() function : error conditions +Test gzinflate() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : string gzinflate(string data [, int length]) - * Description: Unzip a gzip-compressed string + * Description: Unzip a gzip-compressed string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ include(dirname(__FILE__) . '/data.inc'); @@ -37,7 +37,7 @@ echo "\n-- Testing with incorrect parameters --\n"; class Tester { function Hello() { - echo "Hello\n"; + echo "Hello\n"; } } diff --git a/ext/zlib/tests/gzopen_basic.phpt b/ext/zlib/tests/gzopen_basic.phpt index e3697731d8..8e0c32d536 100644 --- a/ext/zlib/tests/gzopen_basic.phpt +++ b/ext/zlib/tests/gzopen_basic.phpt @@ -1,17 +1,17 @@ --TEST-- -Test gzopen() function : basic functionality +Test gzopen() function : basic functionality --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : resource gzopen(string filename, string mode [, int use_include_path]) - * Description: Open a .gz-file and return a .gz-file pointer + * Description: Open a .gz-file and return a .gz-file pointer * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gzopen() : basic functionality ***\n"; diff --git a/ext/zlib/tests/gzopen_basic2.phpt b/ext/zlib/tests/gzopen_basic2.phpt index 90766b1817..dd3ba18235 100644 --- a/ext/zlib/tests/gzopen_basic2.phpt +++ b/ext/zlib/tests/gzopen_basic2.phpt @@ -1,17 +1,17 @@ --TEST-- Test gzopen() function : basic functionality for writing --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : resource gzopen(string filename, string mode [, int use_include_path]) - * Description: Open a .gz-file and return a .gz-file pointer + * Description: Open a .gz-file and return a .gz-file pointer * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gzopen() : basic functionality ***\n"; @@ -37,8 +37,8 @@ foreach($modes as $mode) { else { var_dump($h); } -} - +} + ?> ===DONE=== --EXPECTF-- diff --git a/ext/zlib/tests/gzopen_error.phpt b/ext/zlib/tests/gzopen_error.phpt index a71791fb24..02f125d6b0 100644 --- a/ext/zlib/tests/gzopen_error.phpt +++ b/ext/zlib/tests/gzopen_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test gzopen() function : error conditions +Test gzopen() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : resource gzopen(string filename, string mode [, int use_include_path]) - * Description: Open a .gz-file and return a .gz-file pointer + * Description: Open a .gz-file and return a .gz-file pointer * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gzopen() : error conditions ***\n"; diff --git a/ext/zlib/tests/gzopen_variation2.phpt b/ext/zlib/tests/gzopen_variation2.phpt index 458293514c..1fd08455eb 100644 --- a/ext/zlib/tests/gzopen_variation2.phpt +++ b/ext/zlib/tests/gzopen_variation2.phpt @@ -1,17 +1,17 @@ --TEST-- -Test gzopen() function : usage variation +Test gzopen() function : usage variation --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - zlib extension not loaded"; -} + print "skip - zlib extension not loaded"; +} ?> --FILE-- <?php /* Prototype : resource gzopen(string filename, string mode [, int use_include_path]) - * Description: Open a .gz-file and return a .gz-file pointer + * Description: Open a .gz-file and return a .gz-file pointer * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gzopen() : usage variation ***\n"; @@ -102,9 +102,9 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource variable - 'resource' => $fp + 'resource' => $fp ); // loop through each element of the array for mode diff --git a/ext/zlib/tests/gzopen_variation3.phpt b/ext/zlib/tests/gzopen_variation3.phpt index 4ba607420d..a07b338594 100644 --- a/ext/zlib/tests/gzopen_variation3.phpt +++ b/ext/zlib/tests/gzopen_variation3.phpt @@ -1,18 +1,18 @@ --TEST-- -Test gzopen() function : usage variation +Test gzopen() function : usage variation --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - zlib extension not loaded"; + print "skip - zlib extension not loaded"; } if (PHP_INT_SIZE != 8) die('skip 64-bit only'); ?> --FILE-- <?php /* Prototype : resource gzopen(string filename, string mode [, int use_include_path]) - * Description: Open a .gz-file and return a .gz-file pointer + * Description: Open a .gz-file and return a .gz-file pointer * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gzopen() : usage variation ***\n"; @@ -103,9 +103,9 @@ $inputs = array( // unset data 'unset var' => @$unset_var, - + // resource variable - 'resource' => $fp + 'resource' => $fp ); // loop through each element of the array for use_include_path diff --git a/ext/zlib/tests/gzopen_variation4.phpt b/ext/zlib/tests/gzopen_variation4.phpt index f829acf063..9d0eef0eb2 100644 --- a/ext/zlib/tests/gzopen_variation4.phpt +++ b/ext/zlib/tests/gzopen_variation4.phpt @@ -1,17 +1,17 @@ --TEST-- Test gzopen() function : variation: use include path (relative directories in path) --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : resource gzopen(string filename, string mode [, int use_include_path]) - * Description: Open a .gz-file and return a .gz-file pointer + * Description: Open a .gz-file and return a .gz-file pointer * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gzopen() : usage variation ***\n"; @@ -20,7 +20,7 @@ require_once('reading_include_path.inc'); //define the files to go into these directories, create one in dir2 echo "\n--- testing include path ---\n"; -set_include_path($newIncludePath); +set_include_path($newIncludePath); $modes = array("r", "r+", "rt"); foreach($modes as $mode) { test_gzopen($mode); @@ -39,7 +39,7 @@ rmdir($thisTestDir); function test_gzopen($mode) { global $scriptFile, $secondFile, $firstFile, $filename; - + // create a file in the middle directory $h = gzopen($secondFile, "w"); gzwrite($h, "This is a file in dir2"); @@ -56,44 +56,44 @@ function test_gzopen($mode) { $h = gzopen($firstFile, "w"); gzwrite($h, "This is a file in dir1"); gzclose($h); - + //should now read dir1 file $h = gzopen($filename, $mode, true); gzpassthru($h); gzclose($h); echo "\n"; - + // create a file in working directory $h = gzopen($filename, "w"); gzwrite($h, "This is a file in working dir"); gzclose($h); - + //should still read dir1 file $h = gzopen($filename, $mode, true); gzpassthru($h); gzclose($h); echo "\n"; - + unlink($firstFile); unlink($secondFile); - + //should read the file in working dir $h = gzopen($filename, $mode, true); gzpassthru($h); gzclose($h); echo "\n"; - + // create a file in the script directory $h = gzopen($scriptFile, "w"); gzwrite($h, "This is a file in script dir"); gzclose($h); - + //should read the file in script dir $h = gzopen($filename, $mode, true); gzpassthru($h); gzclose($h); echo "\n"; - + //cleanup unlink($filename); unlink($scriptFile); diff --git a/ext/zlib/tests/gzopen_variation5.phpt b/ext/zlib/tests/gzopen_variation5.phpt index de505f7216..c223efeb15 100644 --- a/ext/zlib/tests/gzopen_variation5.phpt +++ b/ext/zlib/tests/gzopen_variation5.phpt @@ -1,17 +1,17 @@ --TEST-- Test gzopen() function : variation: use include path and stream context create a file, relative path --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : resource gzopen(string filename, string mode [, int use_include_path]) - * Description: Open a .gz-file and return a .gz-file pointer + * Description: Open a .gz-file and return a .gz-file pointer * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ require_once('gzopen_include_path.inc'); @@ -38,8 +38,8 @@ function runtest() { $h = gzopen($tmpfile, "w", true); fwrite($h, "This is the test file"); fclose($h); - - + + $h = @gzopen($tmpfile, "r"); if ($h === false) { echo "Not created in working dir\n"; @@ -49,7 +49,7 @@ function runtest() { gzclose($h); unlink($tmpfile); } - + $h = @gzopen('dir1/'.$tmpfile, "r"); if ($h === false) { echo "Not created in dir1\n"; @@ -57,7 +57,7 @@ function runtest() { else { echo "created in dir1\n"; gzclose($h); - unlink('dir1/'.$tmpfile); + unlink('dir1/'.$tmpfile); } } ?> diff --git a/ext/zlib/tests/gzopen_variation6.phpt b/ext/zlib/tests/gzopen_variation6.phpt index 9fe3f24b47..0abdd757b7 100644 --- a/ext/zlib/tests/gzopen_variation6.phpt +++ b/ext/zlib/tests/gzopen_variation6.phpt @@ -1,17 +1,17 @@ --TEST-- -Test gzopen() function : variation: relative/absolute file +Test gzopen() function : variation: relative/absolute file --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : resource gzopen(string filename, string mode [, int use_include_path]) - * Description: Open a .gz-file and return a .gz-file pointer + * Description: Open a .gz-file and return a .gz-file pointer * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gzopen() : variation ***\n"; diff --git a/ext/zlib/tests/gzopen_variation7.phpt b/ext/zlib/tests/gzopen_variation7.phpt index 92642b0993..911c7fd73c 100644 --- a/ext/zlib/tests/gzopen_variation7.phpt +++ b/ext/zlib/tests/gzopen_variation7.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzopen() by calling it twice on the same file and not closing one of them at the end of the script --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzopen_variation8.phpt b/ext/zlib/tests/gzopen_variation8.phpt index bb0126227f..bb64ecab16 100644 --- a/ext/zlib/tests/gzopen_variation8.phpt +++ b/ext/zlib/tests/gzopen_variation8.phpt @@ -1,17 +1,17 @@ --TEST-- Test gzopen() function : variation: opening a plain file --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : resource gzopen(string filename, string mode [, int use_include_path]) - * Description: Open a .gz-file and return a .gz-file pointer + * Description: Open a .gz-file and return a .gz-file pointer * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gzopen() : variation ***\n"; diff --git a/ext/zlib/tests/gzopen_variation9.phpt b/ext/zlib/tests/gzopen_variation9.phpt index 7a44b6eb09..7359a98cfa 100644 --- a/ext/zlib/tests/gzopen_variation9.phpt +++ b/ext/zlib/tests/gzopen_variation9.phpt @@ -1,17 +1,17 @@ --TEST-- Test gzopen() function : variation: try opening with possibly invalid modes --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : resource gzopen(string filename, string mode [, int use_include_path]) - * Description: Open a .gz-file and return a .gz-file pointer + * Description: Open a .gz-file and return a .gz-file pointer * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gzopen() : variation ***\n"; diff --git a/ext/zlib/tests/gzpassthru_basic.phpt b/ext/zlib/tests/gzpassthru_basic.phpt index 931c2b22cd..223944a144 100644 --- a/ext/zlib/tests/gzpassthru_basic.phpt +++ b/ext/zlib/tests/gzpassthru_basic.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzpassthru() by calling it with its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzpassthru_error.phpt b/ext/zlib/tests/gzpassthru_error.phpt index 18d72efafa..39d5fef908 100644 --- a/ext/zlib/tests/gzpassthru_error.phpt +++ b/ext/zlib/tests/gzpassthru_error.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzpassthru() by calling it more than or less than its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzputs_basic.phpt b/ext/zlib/tests/gzputs_basic.phpt index 6456e4b55f..5f00a18626 100644 --- a/ext/zlib/tests/gzputs_basic.phpt +++ b/ext/zlib/tests/gzputs_basic.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzputs() by calling it with its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzread_basic.phpt b/ext/zlib/tests/gzread_basic.phpt index ecb62a8259..825902e7c0 100644 --- a/ext/zlib/tests/gzread_basic.phpt +++ b/ext/zlib/tests/gzread_basic.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzread() by calling it with its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzread_error.phpt b/ext/zlib/tests/gzread_error.phpt index 989e832757..3baf5247b9 100644 --- a/ext/zlib/tests/gzread_error.phpt +++ b/ext/zlib/tests/gzread_error.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzread() by calling it more than or less than its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- @@ -11,8 +11,8 @@ if (!extension_loaded("zlib")) { $f = dirname(__FILE__)."/004.txt.gz"; $h = gzopen($f, 'r'); -$length = 10; -$extra_arg = 'nothing'; +$length = 10; +$extra_arg = 'nothing'; var_dump(gzread( $h, $length, $extra_arg ) ); diff --git a/ext/zlib/tests/gzread_error2.phpt b/ext/zlib/tests/gzread_error2.phpt index fae6356419..07367fdf3e 100644 --- a/ext/zlib/tests/gzread_error2.phpt +++ b/ext/zlib/tests/gzread_error2.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzread() by calling it invalid lengths --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzread_variation1.phpt b/ext/zlib/tests/gzread_variation1.phpt index 966351e736..4aefe3f910 100644 --- a/ext/zlib/tests/gzread_variation1.phpt +++ b/ext/zlib/tests/gzread_variation1.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzread() by calling it while file open for writing --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzrewind_basic.phpt b/ext/zlib/tests/gzrewind_basic.phpt index 959f0fcdec..ba2ecae5b7 100644 --- a/ext/zlib/tests/gzrewind_basic.phpt +++ b/ext/zlib/tests/gzrewind_basic.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzrewind() by calling it with its expected arguments when reading --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzrewind_basic2.phpt b/ext/zlib/tests/gzrewind_basic2.phpt index f51751c614..00c99801cc 100644 --- a/ext/zlib/tests/gzrewind_basic2.phpt +++ b/ext/zlib/tests/gzrewind_basic2.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzrewind() by calling it with its expected arguments when reading --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzrewind_error.phpt b/ext/zlib/tests/gzrewind_error.phpt index 3a1e4c9b73..d99e2d0a45 100644 --- a/ext/zlib/tests/gzrewind_error.phpt +++ b/ext/zlib/tests/gzrewind_error.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzrewind() by calling it more than or less than its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- @@ -11,7 +11,7 @@ if (!extension_loaded("zlib")) { $f = dirname(__FILE__)."/004.txt.gz"; $h = gzopen($f, 'r'); -$extra_arg = 'nothing'; +$extra_arg = 'nothing'; var_dump(gzrewind( $h, $extra_arg ) ); var_dump(gzrewind()); gzclose($h); diff --git a/ext/zlib/tests/gzrewind_variation1.phpt b/ext/zlib/tests/gzrewind_variation1.phpt index 3eef10e93f..b42a44ad0d 100644 --- a/ext/zlib/tests/gzrewind_variation1.phpt +++ b/ext/zlib/tests/gzrewind_variation1.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzrewind() by calling it with its expected arguments when writing --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzseek_basic.phpt b/ext/zlib/tests/gzseek_basic.phpt index d641bad429..2f0b5ae451 100644 --- a/ext/zlib/tests/gzseek_basic.phpt +++ b/ext/zlib/tests/gzseek_basic.phpt @@ -1,15 +1,15 @@ --TEST-- Test function gzseek() by calling it with its expected arguments when reading --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- <?php $f = dirname(__FILE__)."/004.txt.gz"; -$h = gzopen($f, 'r'); +$h = gzopen($f, 'r'); echo "move to the 50th byte\n"; var_dump(gzseek( $h, 50 ) ); diff --git a/ext/zlib/tests/gzseek_basic2.phpt b/ext/zlib/tests/gzseek_basic2.phpt index 8e037af139..70b0d1f046 100644 --- a/ext/zlib/tests/gzseek_basic2.phpt +++ b/ext/zlib/tests/gzseek_basic2.phpt @@ -1,15 +1,15 @@ --TEST-- Test function gzseek() by calling it with its expected arguments when writing --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- <?php $f = "gzseek_basic2.gz"; -$h = gzopen($f, 'w'); +$h = gzopen($f, 'w'); $str1 = "This is the first line."; $str2 = "This is the second line."; gzwrite($h, $str1); diff --git a/ext/zlib/tests/gzseek_error.phpt b/ext/zlib/tests/gzseek_error.phpt index ab6c96552e..e6c43e7b3a 100644 --- a/ext/zlib/tests/gzseek_error.phpt +++ b/ext/zlib/tests/gzseek_error.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzseek() by calling it more than or less than its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- @@ -12,7 +12,7 @@ $f = dirname(__FILE__)."/004.txt.gz"; $h = gzopen($f, 'r'); $offset = 1; $whence = SEEK_SET; -$extra_arg = 'nothing'; +$extra_arg = 'nothing'; var_dump(gzseek( $h, $offset, $whence, $extra_arg ) ); var_dump(gzseek($h)); diff --git a/ext/zlib/tests/gzseek_variation1.phpt b/ext/zlib/tests/gzseek_variation1.phpt index 8512b743bd..28eff866f9 100644 --- a/ext/zlib/tests/gzseek_variation1.phpt +++ b/ext/zlib/tests/gzseek_variation1.phpt @@ -1,15 +1,15 @@ --TEST-- Test function gzseek() by seeking forward in write mode --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- <?php $f = "gzseek_variation1.gz"; -$h = gzopen($f, 'w'); +$h = gzopen($f, 'w'); $str1 = "This is the first line."; $str2 = "This is the second line."; gzwrite($h, $str1); diff --git a/ext/zlib/tests/gzseek_variation2.phpt b/ext/zlib/tests/gzseek_variation2.phpt index e70d6dd845..615dfe96a3 100644 --- a/ext/zlib/tests/gzseek_variation2.phpt +++ b/ext/zlib/tests/gzseek_variation2.phpt @@ -1,15 +1,15 @@ --TEST-- Test function gzseek() by calling it with SEEK_SET when reading --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- <?php $f = dirname(__FILE__)."/004.txt.gz"; -$h = gzopen($f, 'r'); +$h = gzopen($f, 'r'); echo "move to the 50th byte\n"; var_dump(gzseek( $h, 50, SEEK_SET ) ); diff --git a/ext/zlib/tests/gzseek_variation3.phpt b/ext/zlib/tests/gzseek_variation3.phpt index dee7c1302a..02dc7ac825 100644 --- a/ext/zlib/tests/gzseek_variation3.phpt +++ b/ext/zlib/tests/gzseek_variation3.phpt @@ -1,15 +1,15 @@ --TEST-- Test function gzseek() by calling it with SEEK_CUR when reading --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- <?php $f = dirname(__FILE__)."/004.txt.gz"; -$h = gzopen($f, 'r'); +$h = gzopen($f, 'r'); echo "move to the 50th byte\n"; var_dump(gzseek( $h, 50, SEEK_CUR ) ); diff --git a/ext/zlib/tests/gzseek_variation4.phpt b/ext/zlib/tests/gzseek_variation4.phpt index 529a012141..2270ccc5f9 100644 --- a/ext/zlib/tests/gzseek_variation4.phpt +++ b/ext/zlib/tests/gzseek_variation4.phpt @@ -1,15 +1,15 @@ --TEST-- Test function gzseek() by calling it with SEEK_SET when writing --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- <?php $f = "gzseek_variation5.gz"; -$h = gzopen($f, 'w'); +$h = gzopen($f, 'w'); $str1 = "This is the first line."; $str2 = "This is the second line."; gzwrite($h, $str1); diff --git a/ext/zlib/tests/gzseek_variation5.phpt b/ext/zlib/tests/gzseek_variation5.phpt index 11e4912787..b38b46558e 100644 --- a/ext/zlib/tests/gzseek_variation5.phpt +++ b/ext/zlib/tests/gzseek_variation5.phpt @@ -1,15 +1,15 @@ --TEST-- Test function gzseek() by calling it with SEEK_CUR when writing --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- <?php $f = "gzseek_variation5.gz"; -$h = gzopen($f, 'w'); +$h = gzopen($f, 'w'); $str1 = "This is the first line."; $str2 = "This is the second line."; gzwrite($h, $str1); diff --git a/ext/zlib/tests/gzseek_variation6.phpt b/ext/zlib/tests/gzseek_variation6.phpt index 0c4630953c..bb5d9ed65b 100644 --- a/ext/zlib/tests/gzseek_variation6.phpt +++ b/ext/zlib/tests/gzseek_variation6.phpt @@ -1,16 +1,16 @@ --TEST-- Test function gzseek() by calling it with SEEK_END when reading --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- <?php $f = dirname(__FILE__)."/004.txt.gz"; $h = gzopen($f, 'r'); -// move 40 bytes +// move 40 bytes echo "move 40 bytes\n"; gzread($h, 40); echo "tell="; diff --git a/ext/zlib/tests/gzseek_variation7.phpt b/ext/zlib/tests/gzseek_variation7.phpt index a365272ba2..a1976b2b16 100644 --- a/ext/zlib/tests/gzseek_variation7.phpt +++ b/ext/zlib/tests/gzseek_variation7.phpt @@ -1,15 +1,15 @@ --TEST-- Test function gzseek() by calling it with SEEK_END when writing --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- <?php $f = "gzseek_variation7.gz"; -$h = gzopen($f, 'w'); +$h = gzopen($f, 'w'); $str1 = "This is the first line."; $str2 = "This is the second line."; gzwrite($h, $str1); diff --git a/ext/zlib/tests/gztell_basic.phpt b/ext/zlib/tests/gztell_basic.phpt index b6baf427db..7d7e96d341 100644 --- a/ext/zlib/tests/gztell_basic.phpt +++ b/ext/zlib/tests/gztell_basic.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gztell() by calling it with its expected arguments when reading --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gztell_basic2.phpt b/ext/zlib/tests/gztell_basic2.phpt index ded3fbee7c..05a3f3dced 100644 --- a/ext/zlib/tests/gztell_basic2.phpt +++ b/ext/zlib/tests/gztell_basic2.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gztell() by calling it with its expected arguments when writing --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- @@ -14,7 +14,7 @@ $sizes = array(7, 22, 54, 17, 27, 15, 1000); // tell should be 7, 29, 83, 100, 127, 142, 1142 var_dump(gztell($h)); -foreach ($sizes as $size) { +foreach ($sizes as $size) { echo "bytes written=".gzwrite($h, str_repeat('1', $size))."\n"; echo "tell=".gztell($h)."\n"; } diff --git a/ext/zlib/tests/gztell_error.phpt b/ext/zlib/tests/gztell_error.phpt index e207c59bde..b563a33484 100644 --- a/ext/zlib/tests/gztell_error.phpt +++ b/ext/zlib/tests/gztell_error.phpt @@ -1,16 +1,16 @@ --TEST-- Test function gztell() by calling it more than or less than its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- <?php $f = dirname(__FILE__)."/004.txt.gz"; $h = gzopen($f, 'r'); -$extra_arg = 'nothing'; +$extra_arg = 'nothing'; var_dump(gztell( $h, $extra_arg ) ); var_dump(gztell()); gzclose($h); diff --git a/ext/zlib/tests/gzuncompress_basic1.phpt b/ext/zlib/tests/gzuncompress_basic1.phpt index fa7f1759e6..43bc6eb9ab 100644 --- a/ext/zlib/tests/gzuncompress_basic1.phpt +++ b/ext/zlib/tests/gzuncompress_basic1.phpt @@ -1,17 +1,17 @@ --TEST-- -Test gzuncompress() function : basic functionality +Test gzuncompress() function : basic functionality --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : string gzuncompress(string data [, int length]) - * Description: Unzip a gzip-compressed string + * Description: Unzip a gzip-compressed string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ include(dirname(__FILE__) . '/data.inc'); diff --git a/ext/zlib/tests/gzuncompress_error1.phpt b/ext/zlib/tests/gzuncompress_error1.phpt index baf2527c14..592f6bd6ae 100644 --- a/ext/zlib/tests/gzuncompress_error1.phpt +++ b/ext/zlib/tests/gzuncompress_error1.phpt @@ -1,17 +1,17 @@ --TEST-- -Test gzuncompress() function : error conditions +Test gzuncompress() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php /* Prototype : string gzuncompress(string data [, int length]) - * Description: Unzip a gzip-compressed string + * Description: Unzip a gzip-compressed string * Source code: ext/zlib/zlib.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing gzuncompress() : error conditions ***\n"; @@ -38,7 +38,7 @@ var_dump(gzuncompress(123)); class Tester { function Hello() { - echo "Hello\n"; + echo "Hello\n"; } } diff --git a/ext/zlib/tests/gzwrite_basic.phpt b/ext/zlib/tests/gzwrite_basic.phpt index 46553eedf1..05d877158b 100644 --- a/ext/zlib/tests/gzwrite_basic.phpt +++ b/ext/zlib/tests/gzwrite_basic.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzwrite() by calling it with its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzwrite_error.phpt b/ext/zlib/tests/gzwrite_error.phpt index b4ddbb2ec7..fca081171c 100644 --- a/ext/zlib/tests/gzwrite_error.phpt +++ b/ext/zlib/tests/gzwrite_error.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzwrite() by calling it more than or less than its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- @@ -12,7 +12,7 @@ $filename = "gzwrite_error.txt.gz"; $h = gzopen($filename, 'w'); $str = "Here is the string to be written. "; $length = 10; -$extra_arg = 'nothing'; +$extra_arg = 'nothing'; var_dump(gzwrite($h, $str, $length, $extra_arg)); var_dump(gzwrite($h)); var_dump(gzwrite()); diff --git a/ext/zlib/tests/gzwrite_error2.phpt b/ext/zlib/tests/gzwrite_error2.phpt index 5f2a4197b5..803e34a5cc 100644 --- a/ext/zlib/tests/gzwrite_error2.phpt +++ b/ext/zlib/tests/gzwrite_error2.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzwrite() by calling it invalid lengths --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/gzwrite_variation1.phpt b/ext/zlib/tests/gzwrite_variation1.phpt index bd3778e366..29a67861fd 100644 --- a/ext/zlib/tests/gzwrite_variation1.phpt +++ b/ext/zlib/tests/gzwrite_variation1.phpt @@ -1,9 +1,9 @@ --TEST-- Test function gzwrite() by calling it when file is opened for reading --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/inflate_add_error.phpt b/ext/zlib/tests/inflate_add_error.phpt index 0e1711e0f8..63c827e4e1 100644 --- a/ext/zlib/tests/inflate_add_error.phpt +++ b/ext/zlib/tests/inflate_add_error.phpt @@ -1,9 +1,9 @@ --TEST-- Test incremental inflate_add() error functionality --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/inflate_init_error.phpt b/ext/zlib/tests/inflate_init_error.phpt index 58c07a426c..fb80573c1c 100644 --- a/ext/zlib/tests/inflate_init_error.phpt +++ b/ext/zlib/tests/inflate_init_error.phpt @@ -1,9 +1,9 @@ --TEST-- Test inflate_init() error --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/inflate_init_reuse.phpt b/ext/zlib/tests/inflate_init_reuse.phpt index a6b8a309c0..32fd211002 100644 --- a/ext/zlib/tests/inflate_init_reuse.phpt +++ b/ext/zlib/tests/inflate_init_reuse.phpt @@ -1,9 +1,9 @@ --TEST-- Test incremental inflate_init() context reuse --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/readgzfile_error.phpt b/ext/zlib/tests/readgzfile_error.phpt index 4ec76d0172..6d393423f7 100644 --- a/ext/zlib/tests/readgzfile_error.phpt +++ b/ext/zlib/tests/readgzfile_error.phpt @@ -10,7 +10,7 @@ if (!extension_loaded('zlib')) die ('skip zlib extension not available in this b $filename = dirname(__FILE__)."/004.txt.gz"; $use_include_path = false; -$extra_arg = 'nothing'; +$extra_arg = 'nothing'; var_dump(readgzfile( $filename, $use_include_path, $extra_arg ) ); diff --git a/ext/zlib/tests/readgzfile_variation15.phpt b/ext/zlib/tests/readgzfile_variation15.phpt index 36ff6ff254..dbed5238af 100644 --- a/ext/zlib/tests/readgzfile_variation15.phpt +++ b/ext/zlib/tests/readgzfile_variation15.phpt @@ -1,17 +1,17 @@ --TEST-- Test readgzfile() function : variation: use include path (relative directories in path) --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php require_once('reading_include_path.inc'); //define the files to go into these directories, create one in dir2 -set_include_path($newIncludePath); +set_include_path($newIncludePath); test_readgzfile(); restore_include_path(); @@ -27,7 +27,7 @@ rmdir($thisTestDir); function test_readgzfile() { global $scriptFile, $secondFile, $firstFile, $filename; - + // create a file in the middle directory $h = gzopen($secondFile, "w"); gzwrite($h, "This is a file in dir2"); @@ -42,40 +42,40 @@ function test_readgzfile() { $h = gzopen($firstFile, "w"); gzwrite($h, "This is a file in dir1"); gzclose($h); - + //should now read dir1 file - echo "file content:"; + echo "file content:"; readgzfile($filename, true); echo "\n"; - + // create a file in working directory $h = gzopen($filename, "w"); gzwrite($h, "This is a file in working dir"); gzclose($h); - + //should still read dir1 file - echo "file content:"; + echo "file content:"; readgzfile($filename, true); echo "\n"; - + unlink($firstFile); unlink($secondFile); - + //should read the file in working dir - echo "file content:"; + echo "file content:"; readgzfile($filename, true); echo "\n"; - + // create a file in the script directory $h = gzopen($scriptFile, "w"); gzwrite($h, "This is a file in script dir"); gzclose($h); - + //should read the file in script dir - echo "file content:"; + echo "file content:"; readgzfile($filename, true); echo "\n"; - + //cleanup unlink($filename); unlink($scriptFile); diff --git a/ext/zlib/tests/readgzfile_variation2.phpt b/ext/zlib/tests/readgzfile_variation2.phpt index 80cb728e93..6862aaae57 100644 --- a/ext/zlib/tests/readgzfile_variation2.phpt +++ b/ext/zlib/tests/readgzfile_variation2.phpt @@ -8,7 +8,7 @@ if (!extension_loaded('zlib')) die ('skip zlib extension not available in this b <?php -$use_include_path = +$use_include_path = $variation = array( diff --git a/ext/zlib/tests/zlib_filter_deflate.phpt b/ext/zlib/tests/zlib_filter_deflate.phpt index 1811779f04..2901d40d42 100644 --- a/ext/zlib/tests/zlib_filter_deflate.phpt +++ b/ext/zlib/tests/zlib_filter_deflate.phpt @@ -12,6 +12,6 @@ stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE); fwrite($fp, $text); fclose($fp); -?> ---EXPECT-- +?> +--EXPECT-- HctBDoAgDETRq8zOjfEeHKOGATG0TRpC4u1Vdn/xX4IoxkVMxgP1zA4vkJVhULk9UGkM6TvSNolmxUNlNLePVQ45O3eINf0fsQxtCxwv diff --git a/ext/zlib/tests/zlib_filter_deflate2.phpt b/ext/zlib/tests/zlib_filter_deflate2.phpt index 764a7606f4..f0bf9b0a29 100644 --- a/ext/zlib/tests/zlib_filter_deflate2.phpt +++ b/ext/zlib/tests/zlib_filter_deflate2.phpt @@ -11,6 +11,6 @@ stream_filter_append($fp, 'zlib.deflate', STREAM_FILTER_WRITE, array('level' => fwrite($fp, $text); fclose($fp); -?> ---EXPECT-- +?> +--EXPECT-- A Dѫ1MBUv_(EL/aP=Pi;6fCe4U9;w5m/ diff --git a/ext/zlib/tests/zlib_filter_inflate.phpt b/ext/zlib/tests/zlib_filter_inflate.phpt index 026f192a6e..58ffcfec17 100644 --- a/ext/zlib/tests/zlib_filter_inflate.phpt +++ b/ext/zlib/tests/zlib_filter_inflate.phpt @@ -12,6 +12,6 @@ stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_WRITE); fwrite($fp, $text); fclose($fp); -?> ---EXPECT-- +?> +--EXPECT-- I am the very model of a modern major general, I've information vegetable, animal, and mineral. diff --git a/ext/zlib/tests/zlib_scheme_copy_basic.phpt b/ext/zlib/tests/zlib_scheme_copy_basic.phpt index 028c029e62..ca1a42a85c 100644 --- a/ext/zlib/tests/zlib_scheme_copy_basic.phpt +++ b/ext/zlib/tests/zlib_scheme_copy_basic.phpt @@ -1,10 +1,10 @@ --TEST-- Test compress.zlib:// scheme with the copy function: compressed to compressed --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php diff --git a/ext/zlib/tests/zlib_scheme_copy_variation1.phpt b/ext/zlib/tests/zlib_scheme_copy_variation1.phpt index 3c997ef7e9..f410b6e4f1 100644 --- a/ext/zlib/tests/zlib_scheme_copy_variation1.phpt +++ b/ext/zlib/tests/zlib_scheme_copy_variation1.phpt @@ -1,10 +1,10 @@ --TEST-- Test compress.zlib:// scheme with the copy function: compressed to uncompressed --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php diff --git a/ext/zlib/tests/zlib_scheme_copy_variation2.phpt b/ext/zlib/tests/zlib_scheme_copy_variation2.phpt index 0b56ec430a..43e5d9b2fc 100644 --- a/ext/zlib/tests/zlib_scheme_copy_variation2.phpt +++ b/ext/zlib/tests/zlib_scheme_copy_variation2.phpt @@ -1,10 +1,10 @@ --TEST-- Test compress.zlib:// scheme with the copy function: uncompressed to compressed --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php diff --git a/ext/zlib/tests/zlib_scheme_dir_basic.phpt b/ext/zlib/tests/zlib_scheme_dir_basic.phpt index 02fe4fd354..80189f2de9 100644 --- a/ext/zlib/tests/zlib_scheme_dir_basic.phpt +++ b/ext/zlib/tests/zlib_scheme_dir_basic.phpt @@ -1,10 +1,10 @@ --TEST-- Test compress.zlib:// scheme with the directory functions --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php diff --git a/ext/zlib/tests/zlib_scheme_file_basic.phpt b/ext/zlib/tests/zlib_scheme_file_basic.phpt index b8b60e40e7..f08183fd25 100644 --- a/ext/zlib/tests/zlib_scheme_file_basic.phpt +++ b/ext/zlib/tests/zlib_scheme_file_basic.phpt @@ -1,10 +1,10 @@ --TEST-- Test compress.zlib:// scheme with the file --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php diff --git a/ext/zlib/tests/zlib_scheme_file_get_contents_basic.phpt b/ext/zlib/tests/zlib_scheme_file_get_contents_basic.phpt index c679c46be9..071fcd716e 100644 --- a/ext/zlib/tests/zlib_scheme_file_get_contents_basic.phpt +++ b/ext/zlib/tests/zlib_scheme_file_get_contents_basic.phpt @@ -1,10 +1,10 @@ --TEST-- Test compress.zlib:// scheme with the file_get_contents --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php diff --git a/ext/zlib/tests/zlib_scheme_file_put_contents_basic.phpt b/ext/zlib/tests/zlib_scheme_file_put_contents_basic.phpt index 8ea41df5a8..2f36d1f619 100644 --- a/ext/zlib/tests/zlib_scheme_file_put_contents_basic.phpt +++ b/ext/zlib/tests/zlib_scheme_file_put_contents_basic.phpt @@ -1,10 +1,10 @@ --TEST-- Test compress.zlib:// scheme with the file_get_contents --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php diff --git a/ext/zlib/tests/zlib_scheme_file_read_file_basic.phpt b/ext/zlib/tests/zlib_scheme_file_read_file_basic.phpt index ef44292c3f..eb7fde37b4 100644 --- a/ext/zlib/tests/zlib_scheme_file_read_file_basic.phpt +++ b/ext/zlib/tests/zlib_scheme_file_read_file_basic.phpt @@ -1,10 +1,10 @@ --TEST-- Test compress.zlib:// scheme with the file_get_contents --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php diff --git a/ext/zlib/tests/zlib_scheme_fopen_basic.phpt b/ext/zlib/tests/zlib_scheme_fopen_basic.phpt index d6d4514f7a..8ec10ac463 100644 --- a/ext/zlib/tests/zlib_scheme_fopen_basic.phpt +++ b/ext/zlib/tests/zlib_scheme_fopen_basic.phpt @@ -1,10 +1,10 @@ --TEST-- Test compress.zlib:// scheme with the fopen --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php diff --git a/ext/zlib/tests/zlib_scheme_fopen_variation1.phpt b/ext/zlib/tests/zlib_scheme_fopen_variation1.phpt index 8c26492efd..88057eb3e3 100644 --- a/ext/zlib/tests/zlib_scheme_fopen_variation1.phpt +++ b/ext/zlib/tests/zlib_scheme_fopen_variation1.phpt @@ -1,10 +1,10 @@ --TEST-- Test compress.zlib:// scheme with the fopen on a file scheme --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php diff --git a/ext/zlib/tests/zlib_scheme_rename_basic.phpt b/ext/zlib/tests/zlib_scheme_rename_basic.phpt index 9de55aa3e2..ee693de97a 100644 --- a/ext/zlib/tests/zlib_scheme_rename_basic.phpt +++ b/ext/zlib/tests/zlib_scheme_rename_basic.phpt @@ -1,10 +1,10 @@ --TEST-- Test compress.zlib:// scheme with the unlink function --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php diff --git a/ext/zlib/tests/zlib_scheme_stat_basic.phpt b/ext/zlib/tests/zlib_scheme_stat_basic.phpt index 10cd9a4b03..ab673700dc 100644 --- a/ext/zlib/tests/zlib_scheme_stat_basic.phpt +++ b/ext/zlib/tests/zlib_scheme_stat_basic.phpt @@ -1,10 +1,10 @@ --TEST-- Test compress.zlib:// scheme with the unlink function --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php diff --git a/ext/zlib/tests/zlib_scheme_stat_basic2.phpt b/ext/zlib/tests/zlib_scheme_stat_basic2.phpt index e78bcd76c1..d16e2a8ade 100644 --- a/ext/zlib/tests/zlib_scheme_stat_basic2.phpt +++ b/ext/zlib/tests/zlib_scheme_stat_basic2.phpt @@ -1,10 +1,10 @@ --TEST-- Test compress.zlib:// scheme with the unlink function --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php diff --git a/ext/zlib/tests/zlib_scheme_unlink_basic.phpt b/ext/zlib/tests/zlib_scheme_unlink_basic.phpt index b05e45bc6a..3aa25f9dda 100644 --- a/ext/zlib/tests/zlib_scheme_unlink_basic.phpt +++ b/ext/zlib/tests/zlib_scheme_unlink_basic.phpt @@ -1,10 +1,10 @@ --TEST-- Test compress.zlib:// scheme with the unlink function --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; -} + print "skip - ZLIB extension not loaded"; +} ?> --FILE-- <?php diff --git a/ext/zlib/tests/zlib_wrapper_fflush_basic.phpt b/ext/zlib/tests/zlib_wrapper_fflush_basic.phpt index de1318cfed..c706b2a7b7 100644 --- a/ext/zlib/tests/zlib_wrapper_fflush_basic.phpt +++ b/ext/zlib/tests/zlib_wrapper_fflush_basic.phpt @@ -1,9 +1,9 @@ --TEST-- Test function fflush() on a zlib stream wrapper --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/zlib_wrapper_flock_basic.phpt b/ext/zlib/tests/zlib_wrapper_flock_basic.phpt index 9cefce4cbe..ec1b67a64b 100644 --- a/ext/zlib/tests/zlib_wrapper_flock_basic.phpt +++ b/ext/zlib/tests/zlib_wrapper_flock_basic.phpt @@ -1,15 +1,15 @@ --TEST-- Test function stream_get_meta_data on a zlib stream --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- <?php $f = dirname(__FILE__)."/004.txt.gz"; -$h = gzopen($f,'r'); +$h = gzopen($f,'r'); var_dump(flock($h, LOCK_SH)); gzclose($h); ?> diff --git a/ext/zlib/tests/zlib_wrapper_fstat_basic.phpt b/ext/zlib/tests/zlib_wrapper_fstat_basic.phpt index 41f957e80b..4c185be689 100644 --- a/ext/zlib/tests/zlib_wrapper_fstat_basic.phpt +++ b/ext/zlib/tests/zlib_wrapper_fstat_basic.phpt @@ -1,9 +1,9 @@ --TEST-- -Test function fstat() on zlib wrapper +Test function fstat() on zlib wrapper --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/zlib_wrapper_ftruncate_basic.phpt b/ext/zlib/tests/zlib_wrapper_ftruncate_basic.phpt index 348e24505c..399d32c5f3 100644 --- a/ext/zlib/tests/zlib_wrapper_ftruncate_basic.phpt +++ b/ext/zlib/tests/zlib_wrapper_ftruncate_basic.phpt @@ -1,9 +1,9 @@ --TEST-- Test function ftruncate() on zlib wrapper by calling it with its expected arguments --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- diff --git a/ext/zlib/tests/zlib_wrapper_meta_data_basic.phpt b/ext/zlib/tests/zlib_wrapper_meta_data_basic.phpt index a9d208eeaa..87fa6227ab 100644 --- a/ext/zlib/tests/zlib_wrapper_meta_data_basic.phpt +++ b/ext/zlib/tests/zlib_wrapper_meta_data_basic.phpt @@ -1,21 +1,21 @@ --TEST-- Test function stream_get_meta_data on a zlib stream --SKIPIF-- -<?php +<?php if (!extension_loaded("zlib")) { - print "skip - ZLIB extension not loaded"; + print "skip - ZLIB extension not loaded"; } ?> --FILE-- <?php echo "no wrapper\n"; $f = dirname(__FILE__)."/004.txt.gz"; -$h = gzopen($f,'r'); +$h = gzopen($f,'r'); var_dump(stream_get_meta_data($h)); gzclose($h); echo "\nwith wrapper\n"; $f = "compress.zlib://".dirname(__FILE__)."/004.txt.gz"; -$h = fopen($f,'r'); +$h = fopen($f,'r'); var_dump(stream_get_meta_data($h)); gzclose($h); |