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 /** * This file is part of the reliforp/reli-prof package. * * (c) sji <sji@sj-i..
Decoded Output download
<?php
/**
* This file is part of the reliforp/reli-prof package.
*
* (c) sji <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Reli\Lib\Elf\Structure\Elf64;
final class Elf64DynamicStructureArray
{
/** @var Elf64DynamicStructure[] */
private array $entries;
public function __construct(Elf64DynamicStructure ...$entries)
{
$this->entries = $entries;
}
/**
* @return Elf64DynamicStructure[]
*/
public function findAll(): array
{
return $this->entries;
}
/**
* @return Elf64DynamicStructure[]
*/
public function findStringTableEntries(): array
{
$entries = [];
foreach ($this->entries as $entry) {
if ($entry->isStringTable()) {
$entries[Elf64DynamicStructure::DT_STRTAB] = $entry;
} elseif ($entry->isStringTableSize()) {
$entries[Elf64DynamicStructure::DT_STRSZ] = $entry;
}
}
return $entries;
}
/**
* @return Elf64DynamicStructure[]
*/
public function findSymbolTablEntries(): array
{
$entries = [];
foreach ($this->entries as $entry) {
if ($entry->isSymbolTable()) {
$entries[Elf64DynamicStructure::DT_SYMTAB] = $entry;
} elseif ($entry->isSymbolTableEntrySize()) {
$entries[Elf64DynamicStructure::DT_SYMENT] = $entry;
}
}
return $entries;
}
public function findGnuHashTableEntry(): ?Elf64DynamicStructure
{
foreach ($this->entries as $entry) {
if ($entry->isGnuHashTable()) {
return $entry;
}
}
return null;
}
public function findDebugEntry(): ?Elf64DynamicStructure
{
foreach ($this->entries as $entry) {
if ($entry->isDebug()) {
return $entry;
}
}
return null;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* This file is part of the reliforp/reli-prof package.
*
* (c) sji <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Reli\Lib\Elf\Structure\Elf64;
final class Elf64DynamicStructureArray
{
/** @var Elf64DynamicStructure[] */
private array $entries;
public function __construct(Elf64DynamicStructure ...$entries)
{
$this->entries = $entries;
}
/**
* @return Elf64DynamicStructure[]
*/
public function findAll(): array
{
return $this->entries;
}
/**
* @return Elf64DynamicStructure[]
*/
public function findStringTableEntries(): array
{
$entries = [];
foreach ($this->entries as $entry) {
if ($entry->isStringTable()) {
$entries[Elf64DynamicStructure::DT_STRTAB] = $entry;
} elseif ($entry->isStringTableSize()) {
$entries[Elf64DynamicStructure::DT_STRSZ] = $entry;
}
}
return $entries;
}
/**
* @return Elf64DynamicStructure[]
*/
public function findSymbolTablEntries(): array
{
$entries = [];
foreach ($this->entries as $entry) {
if ($entry->isSymbolTable()) {
$entries[Elf64DynamicStructure::DT_SYMTAB] = $entry;
} elseif ($entry->isSymbolTableEntrySize()) {
$entries[Elf64DynamicStructure::DT_SYMENT] = $entry;
}
}
return $entries;
}
public function findGnuHashTableEntry(): ?Elf64DynamicStructure
{
foreach ($this->entries as $entry) {
if ($entry->isGnuHashTable()) {
return $entry;
}
}
return null;
}
public function findDebugEntry(): ?Elf64DynamicStructure
{
foreach ($this->entries as $entry) {
if ($entry->isDebug()) {
return $entry;
}
}
return null;
}
}
Function Calls
None |
Stats
MD5 | e554a4d705ec133f0a181d9d859c696d |
Eval Count | 0 |
Decode Time | 89 ms |