dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Assignment in loop conditions suck
[lhc/web/wiklou.git]
/
maintenance
/
7zip.inc
diff --git
a/maintenance/7zip.inc
b/maintenance/7zip.inc
index
6acd43b
..
833e76c
100644
(file)
--- a/
maintenance/7zip.inc
+++ b/
maintenance/7zip.inc
@@
-1,4
+1,11
@@
<?php
<?php
+/**
+ * 7z stream wrapper
+ *
+ * @file
+ * @ingroup Maintenance
+ */
+
/**
* Stream wrapper around 7za filter program.
* Required since we can't pass an open file resource to XMLReader->open()
/**
* Stream wrapper around 7za filter program.
* Required since we can't pass an open file resource to XMLReader->open()
@@
-28,7
+35,7
@@
class SevenZipStream {
// Suppress the stupid messages on stderr
$command .= ' 2>/dev/null';
}
// Suppress the stupid messages on stderr
$command .= ' 2>/dev/null';
}
- $this->stream = popen( $command, $mode
);
+ $this->stream = popen( $command, $mode
[0] ); // popen() doesn't like two-letter modes
return ( $this->stream !== false );
}
return ( $this->stream !== false );
}
@@
-66,4
+73,4
@@
class SevenZipStream {
return fseek( $this->stream, $offset, $whence );
}
}
return fseek( $this->stream, $offset, $whence );
}
}
-stream_wrapper_register( 'mediawiki.compress.7z', 'SevenZipStream' );
\ No newline at end of file
+stream_wrapper_register( 'mediawiki.compress.7z', 'SevenZipStream' );