Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Phar: tar with relative link to subdirectory file from subdirectory file --EXTENS..

Decoded Output download

--TEST--
Phar: tar with relative link to subdirectory file from subdirectory file
--EXTENSIONS--
phar
--INI--
phar.require_hash=0
--FILE--
<?php
try {
    $p = new PharData(__DIR__ . '/files/subdirlink.tar');
} catch (Exception $e) {
    echo $e->getMessage() . "
";
}
echo $p['hi/test.txt']->getContent();
echo $p['hi/link.txt']->getContent();
?>
--EXPECT--
hi
hi

Did this file decode correctly?

Original Code

--TEST--
Phar: tar with relative link to subdirectory file from subdirectory file
--EXTENSIONS--
phar
--INI--
phar.require_hash=0
--FILE--
<?php
try {
    $p = new PharData(__DIR__ . '/files/subdirlink.tar');
} catch (Exception $e) {
    echo $e->getMessage() . "\n";
}
echo $p['hi/test.txt']->getContent();
echo $p['hi/link.txt']->getContent();
?>
--EXPECT--
hi
hi

Function Calls

None

Variables

None

Stats

MD5 4109e8f342b9419acd628f9966baa114
Eval Count 0
Decode Time 100 ms