Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php declare(strict_types=1); use Sabre\DAV\Server; use Sabre\TestUtil; set_include_pa..
Decoded Output download
<?php
declare(strict_types=1);
use Sabre\DAV\Server;
use Sabre\TestUtil;
set_include_path(__DIR__.'/../lib/'.PATH_SEPARATOR.__DIR__.PATH_SEPARATOR.get_include_path());
$autoLoader = include __DIR__.'/../vendor/autoload.php';
// SabreDAV tests auto loading
$autoLoader->add('Sabre\', __DIR__);
// VObject tests auto loading
$autoLoader->addPsr4('Sabre\VObject\', __DIR__.'/../vendor/sabre/vobject/tests/VObject');
$autoLoader->addPsr4('Sabre\Xml\', __DIR__.'/../vendor/sabre/xml/tests/Sabre/Xml');
date_default_timezone_set('UTC');
if ('TRUE' === getenv('RUN_TEST_WITH_STREAMING_PROPFIND')) {
echo 'Running unit tests with \Sabre\DAV\Server::$streamMultiStatus = true';
Server::$streamMultiStatus = true;
}
if (!file_exists(TestUtil::SABRE_TEMPDIR)) {
mkdir(TestUtil::SABRE_TEMPDIR);
}
if (file_exists('.sabredav')) {
unlink('.sabredav');
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
use Sabre\DAV\Server;
use Sabre\TestUtil;
set_include_path(__DIR__.'/../lib/'.PATH_SEPARATOR.__DIR__.PATH_SEPARATOR.get_include_path());
$autoLoader = include __DIR__.'/../vendor/autoload.php';
// SabreDAV tests auto loading
$autoLoader->add('Sabre\\', __DIR__);
// VObject tests auto loading
$autoLoader->addPsr4('Sabre\\VObject\\', __DIR__.'/../vendor/sabre/vobject/tests/VObject');
$autoLoader->addPsr4('Sabre\\Xml\\', __DIR__.'/../vendor/sabre/xml/tests/Sabre/Xml');
date_default_timezone_set('UTC');
if ('TRUE' === getenv('RUN_TEST_WITH_STREAMING_PROPFIND')) {
echo 'Running unit tests with \Sabre\DAV\Server::$streamMultiStatus = true';
Server::$streamMultiStatus = true;
}
if (!file_exists(TestUtil::SABRE_TEMPDIR)) {
mkdir(TestUtil::SABRE_TEMPDIR);
}
if (file_exists('.sabredav')) {
unlink('.sabredav');
}
Function Calls
None |
Stats
MD5 | b29774f0efdc607521ab899d869b0196 |
Eval Count | 0 |
Decode Time | 143 ms |