File tree Expand file tree Collapse file tree 1 file changed +4
-19
lines changed Expand file tree Collapse file tree 1 file changed +4
-19
lines changed Original file line number Diff line number Diff line change @@ -3,26 +3,11 @@ string zlib_get_coding_type ( void );
3
3
--CREDITS--
4
4
marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
5
5
--SKIPIF--
6
- <?php
7
- if (phpversion () < "5.6.0 " ) {
8
- die ('SKIP php version so lower. ' );
9
- }
6
+ if(!extension_loaded('zlib')) die('skip, zlib not loader');
10
7
?>
11
8
--FILE--
12
9
<?php
13
- $ compressionCoding = zlib_get_coding_type ();
14
- $ codingType = "get zlib type error " ;
15
-
16
- if ((!$ compressionCoding ) || ("gzip " == $ compressionCoding ) || ("deflate " == $ compressionCoding )){
17
- $ codingType = "okey " ;
18
- }
19
-
20
- print ($ codingType );
21
- ?>
22
- --CLEAN--
23
- <?php
24
- unset($ compressionCoding );
25
- unset($ codingType );
10
+ var_dump (zlib_get_coding_type ());
26
11
?>
27
- --EXPECT --
28
- okey
12
+ --EXPECTF --
13
+ bool(%s)
You can’t perform that action at this time.
0 commit comments