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-- Bug #67359 (Segfault in recursiveDirectoryIterator) --FILE-- <?php try { $rdi..

Decoded Output download

--TEST--
Bug #67359 (Segfault in recursiveDirectoryIterator)
--FILE--
<?php
try
{
    $rdi = new recursiveDirectoryIterator(__DIR__,  FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS);
    $it = new recursiveIteratorIterator( $rdi );
    $it->seek(1);
    while( $it->valid())
    {
        if( $it->isFile() )
        {
            $it->current();
        }

        $it->next();
    }

    $it->current();
}
catch(Exception $e)
{
}
echo "okey"
?>
--EXPECT--
okey

Did this file decode correctly?

Original Code

--TEST--
Bug #67359 (Segfault in recursiveDirectoryIterator)
--FILE--
<?php
try
{
    $rdi = new recursiveDirectoryIterator(__DIR__,  FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS);
    $it = new recursiveIteratorIterator( $rdi );
    $it->seek(1);
    while( $it->valid())
    {
        if( $it->isFile() )
        {
            $it->current();
        }

        $it->next();
    }

    $it->current();
}
catch(Exception $e)
{
}
echo "okey"
?>
--EXPECT--
okey

Function Calls

None

Variables

None

Stats

MD5 97270b8aa078f69b91dc3482ec45924f
Eval Count 0
Decode Time 91 ms