Page MenuHomePhabricator
Authored By
ppggff
Feb 22 2016, 3:37 AM
Size
490 B
Referenced Files
None
Subscribers
None

test.php

#!/usr/bin/php
<?php
$input_stream = fopen("test.txt.gz", "rb");
stream_filter_append(
$input_stream,
'zlib.inflate',
STREAM_FILTER_READ,
array(
'window' => $argv[1],
));
$input_data = '';
while (!feof($input_stream)) {
$read_bytes = fread($input_stream, 64 * 1024);
$input_data .= $read_bytes;
}
fclose($input_stream);
$myfile = fopen("test.txt", "w");
fwrite($myfile, $input_data);
fclose($myfile);

File Metadata

Mime Type
text/x-php
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
58736
Default Alt Text
test.php (490 B)

Event Timeline

ppggff changed the visibility from "ppggff (ppggff)" to "Public (No Login Required)".Feb 22 2016, 3:40 AM