123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- --TEST--
- Test function gzfile() by substituting argument 2 with boolean values.
- --EXTENSIONS--
- zlib
- --FILE--
- <?php
- $filename = __DIR__."/004.txt.gz";
- $variation = array(
- 'lowercase true' => true,
- 'lowercase false' =>false,
- 'uppercase TRUE' =>TRUE,
- 'uppercase FALSE' =>FALSE,
- );
- foreach ( $variation as $var ) {
- var_dump(gzfile( $filename, $var ) );
- }
- ?>
- --EXPECT--
- array(6) {
- [0]=>
- string(36) "When you're taught through feelings
- "
- [1]=>
- string(26) "Destiny flying high above
- "
- [2]=>
- string(38) "all I know is that you can realize it
- "
- [3]=>
- string(18) "Destiny who cares
- "
- [4]=>
- string(19) "as it turns around
- "
- [5]=>
- string(39) "and I know that it descends down on me
- "
- }
- array(6) {
- [0]=>
- string(36) "When you're taught through feelings
- "
- [1]=>
- string(26) "Destiny flying high above
- "
- [2]=>
- string(38) "all I know is that you can realize it
- "
- [3]=>
- string(18) "Destiny who cares
- "
- [4]=>
- string(19) "as it turns around
- "
- [5]=>
- string(39) "and I know that it descends down on me
- "
- }
- array(6) {
- [0]=>
- string(36) "When you're taught through feelings
- "
- [1]=>
- string(26) "Destiny flying high above
- "
- [2]=>
- string(38) "all I know is that you can realize it
- "
- [3]=>
- string(18) "Destiny who cares
- "
- [4]=>
- string(19) "as it turns around
- "
- [5]=>
- string(39) "and I know that it descends down on me
- "
- }
- array(6) {
- [0]=>
- string(36) "When you're taught through feelings
- "
- [1]=>
- string(26) "Destiny flying high above
- "
- [2]=>
- string(38) "all I know is that you can realize it
- "
- [3]=>
- string(18) "Destiny who cares
- "
- [4]=>
- string(19) "as it turns around
- "
- [5]=>
- string(39) "and I know that it descends down on me
- "
- }
|