readgzfile_variation11.phpt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --TEST--
  2. Test function readgzfile() by substituting argument 2 with float values.
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
  6. if (PHP_INT_SIZE != 8) die('skip 64-bit only');
  7. ?>
  8. --FILE--
  9. <?php
  10. $filename = dirname(__FILE__)."/004.txt.gz";
  11. $variation = array(
  12. 'float 10.5' => 10.5,
  13. 'float -10.5' => -10.5,
  14. 'float 12.3456789000e10' => 12.3456789000e10,
  15. 'float -12.3456789000e10' => -12.3456789000e10,
  16. 'float .5' => .5,
  17. );
  18. foreach ( $variation as $var ) {
  19. var_dump(readgzfile( $filename, $var ) );
  20. }
  21. ?>
  22. ===DONE===
  23. --EXPECT--
  24. When you're taught through feelings
  25. Destiny flying high above
  26. all I know is that you can realize it
  27. Destiny who cares
  28. as it turns around
  29. and I know that it descends down on me
  30. int(176)
  31. When you're taught through feelings
  32. Destiny flying high above
  33. all I know is that you can realize it
  34. Destiny who cares
  35. as it turns around
  36. and I know that it descends down on me
  37. int(176)
  38. When you're taught through feelings
  39. Destiny flying high above
  40. all I know is that you can realize it
  41. Destiny who cares
  42. as it turns around
  43. and I know that it descends down on me
  44. int(176)
  45. When you're taught through feelings
  46. Destiny flying high above
  47. all I know is that you can realize it
  48. Destiny who cares
  49. as it turns around
  50. and I know that it descends down on me
  51. int(176)
  52. When you're taught through feelings
  53. Destiny flying high above
  54. all I know is that you can realize it
  55. Destiny who cares
  56. as it turns around
  57. and I know that it descends down on me
  58. int(176)
  59. ===DONE===