/
proc
/
3430793
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
zlib
/
tests
/
File Upload :
llllll
Current File: //proc/3430793/root/usr/local/lsws/phpbuild/php-8.0.7/ext/zlib/tests/gzeof_variation1.phpt
--TEST-- Test function gzeof while writing. --SKIPIF-- <?php if (!extension_loaded("zlib")) { print "skip - ZLIB extension not loaded"; } ?> --FILE-- <?php $filename = __DIR__."/gzeof_variation1.txt.gz"; $h = gzopen($filename, 'w'); $str = "Here is the string to be written. "; $length = 10; gzwrite( $h, $str ); var_dump(gzeof($h)); gzwrite( $h, $str, $length); var_dump(gzeof($h)); gzclose($h); try { var_dump(gzeof($h)); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } unlink($filename); ?> --EXPECT-- bool(false) bool(false) gzeof(): supplied resource is not a valid stream resource
Copyright ©2k19 -
Hexid
|
Tex7ure