mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
22 lines
403 B
PHP
22 lines
403 B
PHP
--TEST--
|
|
Test function gzwrite() by calling it when file is opened for reading
|
|
--EXTENSIONS--
|
|
zlib
|
|
--FILE--
|
|
<?php
|
|
|
|
$filename = __DIR__."/004.txt.gz";
|
|
$h = gzopen($filename, 'r');
|
|
$str = "Here is the string to be written. ";
|
|
$length = 10;
|
|
var_dump(gzwrite( $h, $str ) );
|
|
var_dump(gzread($h, 10));
|
|
var_dump(gzwrite( $h, $str, $length ) );
|
|
gzclose($h);
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(0)
|
|
string(10) "When you'r"
|
|
int(0)
|