Fix Tar support for php >=5.5
This commit is contained in:
parent
79fa2bc391
commit
482bca1713
2
3rdparty
2
3rdparty
|
@ -1 +1 @@
|
||||||
Subproject commit 3f2b62ec137082cc435bd358f9632139c1039b08
|
Subproject commit 57245d2a64c99aab8a438f909988e7a4ffef5b23
|
|
@ -10,12 +10,6 @@ require_once 'archive.php';
|
||||||
|
|
||||||
if (!OC_Util::runningOnWindows()) {
|
if (!OC_Util::runningOnWindows()) {
|
||||||
class Test_Archive_TAR extends Test_Archive {
|
class Test_Archive_TAR extends Test_Archive {
|
||||||
public function setUp() {
|
|
||||||
if (floatval(phpversion())>=5.5) {
|
|
||||||
$this->markTestSkipped('php 5.5 changed unpack function.');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
protected function getExisting() {
|
protected function getExisting() {
|
||||||
$dir = OC::$SERVERROOT . '/tests/data';
|
$dir = OC::$SERVERROOT . '/tests/data';
|
||||||
return new OC_Archive_TAR($dir . '/data.tar.gz');
|
return new OC_Archive_TAR($dir . '/data.tar.gz');
|
||||||
|
|
Loading…
Reference in New Issue