File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
zlib /
tests /
gzopen_variation7.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:05 2012 UTC (13 years ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
Test function gzopen() by calling it twice on the same file and not closing one of them at the end of the script
--SKIPIF--
<?php
if (!extension_loaded("zlib")) {
print "skip - ZLIB extension not loaded";
}
?>
--FILE--
<?php
$f = dirname(__FILE__)."/004.txt.gz";
$h1 = gzopen($f, 'r');
$h2 = gzopen($f, 'r');
var_dump(gzread($h1, 30));
var_dump(gzread($h2, 10));
var_dump(gzread($h1, 15));
gzclose($h1);
var_dump(gzread($h2, 50));
// deliberately do not close $h2
?>
===DONE===
--EXPECT--
string(30) "When you're taught through fee"
string(10) "When you'r"
string(15) "lings
Destiny f"
string(50) "e taught through feelings
Destiny flying high abov"
===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>