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: verify stub of specific length does not break __HALT_COMPILER(); scanning i..
Decoded Output download
--TEST--
Phar: verify stub of specific length does not break __HALT_COMPILER(); scanning in php
--EXTENSIONS--
phar
--INI--
phar.require_hash=0
phar.readonly=0
--FILE--
<?php
$phar = __DIR__ . '/files/stuboflength1041.phar';
foreach (new RecursiveIteratorIterator(new Phar($phar, alias: 'stuboflength1041.phar')) as $item) {
var_dump($item->getFileName());
}
?>
--EXPECT--
string(5) "a.php"
string(5) "b.php"
Did this file decode correctly?
Original Code
--TEST--
Phar: verify stub of specific length does not break __HALT_COMPILER(); scanning in php
--EXTENSIONS--
phar
--INI--
phar.require_hash=0
phar.readonly=0
--FILE--
<?php
$phar = __DIR__ . '/files/stuboflength1041.phar';
foreach (new RecursiveIteratorIterator(new Phar($phar, alias: 'stuboflength1041.phar')) as $item) {
var_dump($item->getFileName());
}
?>
--EXPECT--
string(5) "a.php"
string(5) "b.php"
Function Calls
None |
Stats
MD5 | 0c4563fec8f2a8a764092f46d667b34a |
Eval Count | 0 |
Decode Time | 88 ms |