Lines Matching refs:gzencode

2 Test gzencode() function : error conditions
11 /* Prototype : string gzencode ( string $data [, int $level [, int $encoding_mode ]] )
18 * Test error cases for gzencode
21 echo "*** Testing gzencode() : error conditions ***\n";
24 echo "\n-- Testing gzencode() function with Zero arguments --\n";
25 var_dump( gzencode() );
27 //Test gzencode with one more than the expected number of arguments
28 echo "\n-- Testing gzencode() function with more than expected no. of arguments --\n";
33 var_dump( gzencode($data, $level, $encoding_mode, $extra_arg) );
37 var_dump(gzencode($data, $bad_level));
41 var_dump(gzencode($data, $level, $bad_mode));
51 var_dump(gzencode($testclass));
52 var_dump(gzencode($data, $testclass));
53 var_dump(gzencode($data, -1, 99.99));
54 var_dump(gzencode($data, -1, $testclass));
55 var_dump(gzencode($data, "a very none numeric string\n"));
60 *** Testing gzencode() : error conditions ***
62 -- Testing gzencode() function with Zero arguments --
64 Warning: gzencode() expects at least 1 parameter, 0 given in %s on line %d
67 -- Testing gzencode() function with more than expected no. of arguments --
69 Warning: gzencode() expects at most 3 parameters, 4 given in %s on line %d
74 Warning: gzencode(): compression level(99) must be within -1..9 in %s on line %d
79 Warning: gzencode(): encoding mode must be FORCE_GZIP or FORCE_DEFLATE in %s on line %d
84 Warning: gzencode() expects parameter 1 to be string, object given in %s on line %d
87 Warning: gzencode() expects parameter 2 to be long, object given in %s on line %d
90 Warning: gzencode(): encoding mode must be FORCE_GZIP or FORCE_DEFLATE in %s on line %d
93 Warning: gzencode() expects parameter 3 to be long, object given in %s on line %d
96 Warning: gzencode() expects parameter 2 to be long, string given in %s on line %d