18f9ec423SDave Kelsey--TEST--
204145dc2SVeres LajosTest function readgzfile() by substituting argument 2 with int values.
38f9ec423SDave Kelsey--SKIPIF--
48f9ec423SDave Kelsey<?php
58f9ec423SDave Kelseyif (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
68f9ec423SDave Kelsey?>
78f9ec423SDave Kelsey--FILE--
88f9ec423SDave Kelsey<?php
98f9ec423SDave Kelsey
108f9ec423SDave Kelsey
118f9ec423SDave Kelsey$filename = dirname(__FILE__)."/004.txt.gz";
128f9ec423SDave Kelsey
138f9ec423SDave Kelsey
148f9ec423SDave Kelsey$variation = array (
158f9ec423SDave Kelsey    'int 0' => 0,
168f9ec423SDave Kelsey    'int 1' => 1,
178f9ec423SDave Kelsey    'int 12345' => 12345,
188f9ec423SDave Kelsey    'int -12345' => -2345,
198f9ec423SDave Kelsey    );
208f9ec423SDave Kelsey
218f9ec423SDave Kelsey
228f9ec423SDave Kelseyforeach ( $variation as $var ) {
238f9ec423SDave Kelsey  var_dump(readgzfile( $filename, $var  ) );
248f9ec423SDave Kelsey}
258f9ec423SDave Kelsey?>
268f9ec423SDave Kelsey===DONE===
278f9ec423SDave Kelsey--EXPECT--
288f9ec423SDave KelseyWhen you're taught through feelings
298f9ec423SDave KelseyDestiny flying high above
308f9ec423SDave Kelseyall I know is that you can realize it
318f9ec423SDave KelseyDestiny who cares
328f9ec423SDave Kelseyas it turns around
338f9ec423SDave Kelseyand I know that it descends down on me
348f9ec423SDave Kelseyint(176)
358f9ec423SDave KelseyWhen you're taught through feelings
368f9ec423SDave KelseyDestiny flying high above
378f9ec423SDave Kelseyall I know is that you can realize it
388f9ec423SDave KelseyDestiny who cares
398f9ec423SDave Kelseyas it turns around
408f9ec423SDave Kelseyand I know that it descends down on me
418f9ec423SDave Kelseyint(176)
428f9ec423SDave KelseyWhen you're taught through feelings
438f9ec423SDave KelseyDestiny flying high above
448f9ec423SDave Kelseyall I know is that you can realize it
458f9ec423SDave KelseyDestiny who cares
468f9ec423SDave Kelseyas it turns around
478f9ec423SDave Kelseyand I know that it descends down on me
488f9ec423SDave Kelseyint(176)
498f9ec423SDave KelseyWhen you're taught through feelings
508f9ec423SDave KelseyDestiny flying high above
518f9ec423SDave Kelseyall I know is that you can realize it
528f9ec423SDave KelseyDestiny who cares
538f9ec423SDave Kelseyas it turns around
548f9ec423SDave Kelseyand I know that it descends down on me
558f9ec423SDave Kelseyint(176)
56b746e698SPeter Kokot===DONE===
57