![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: Bug #61139 (gzopen leaks when specifying invalid mode) ! 3: --SKIPIF-- ! 4: <?php ! 5: if (!extension_loaded('zlib')) { ! 6: die('skip - zlib extension not loaded'); ! 7: } ! 8: ?> ! 9: --FILE-- ! 10: <?php ! 11: ! 12: gzopen('someFile', 'c'); ! 13: --EXPECTF-- ! 14: Warning: gzopen(): gzopen failed in %s on line %d