Lines Matching refs:gzcompress
2 Test gzcompress() function : error conditions
11 /* Prototype : string gzcompress(string data [, int level])
21 echo "*** Testing gzcompress() : error conditions ***\n";
24 echo "\n-- Testing gzcompress() function with Zero arguments --\n";
25 var_dump( gzcompress() );
27 //Test gzcompress with one more than the expected number of arguments
28 echo "\n-- Testing gzcompress() function with more than expected no. of arguments --\n";
32 var_dump( gzcompress($data, $level, $extra_arg) );
36 var_dump(gzcompress($data, $bad_level));
46 var_dump(gzcompress($testclass));
48 var_dump(gzcompress($data, $testclass));
54 *** Testing gzcompress() : error conditions ***
56 -- Testing gzcompress() function with Zero arguments --
58 Warning: gzcompress() expects at least 1 parameter, 0 given in %s on line %d
61 -- Testing gzcompress() function with more than expected no. of arguments --
63 Warning: gzcompress() expects at most 2 parameters, 3 given in %s on line %d
68 Warning: gzcompress(): compression level (99) must be within -1..9 in %s on line %d
73 Warning: gzcompress() expects parameter 1 to be string, object given in %s on line %d
76 Warning: gzcompress() expects parameter 2 to be long, object given in %s on line %d