Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1122167
test.php
Public
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
ppggff
Feb 22 2016, 3:37 AM
2016-02-22 03:37:17 (UTC+0)
Size
490 B
Referenced Files
None
Subscribers
None
test.php
View Options
#!/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
Details
Attached
Mime Type
text/x-php
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
58736
Default Alt Text
test.php (490 B)
Attached To
Mode
T10264: git clone using http hangs after update
Attached
Detach File
Event Timeline
ppggff
changed the visibility from "
ppggff (ppggff)
" to "Public (No Login Required)".
Feb 22 2016, 3:40 AM
2016-02-22 03:40:13 (UTC+0)
Log In to Comment