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-- Test restoring internal functions after renaming and copying under fpm --SKIPIF--..

Decoded Output download

--TEST--
Test restoring internal functions after renaming and copying under fpm
--SKIPIF--
<?php include "_fpm_skipif.inc"; ?>
--FILE--
<?php
include "_fpm_include.inc";
$code = <<<EOT
<?php
echo "Test Start
";
runkit_function_copy('chop', '__chop');
runkit_function_rename('chop', '_chop');
echo _chop('A B '), "
";
echo __chop('C D '), "
";
echo "Test End
";
EOT;
fpm_test(array($code, $code, $code), "-d extension=modules/runkit.so -d runkit.internal_override=1");
?>
Done
--EXPECTF--
[%s] NOTICE: fpm is running, pid %d
[%s] NOTICE: ready to handle connections
Test Start
A B
C D
Test End

Request ok
Test Start
A B
C D
Test End

Request ok
Test Start
A B
C D
Test End

Request ok
Done
--CLEAN--
<?php
include "_fpm_include.inc";
fpm_clean();
?>

Did this file decode correctly?

Original Code

--TEST--
Test restoring internal functions after renaming and copying under fpm
--SKIPIF--
<?php include "_fpm_skipif.inc"; ?>
--FILE--
<?php
include "_fpm_include.inc";
$code = <<<EOT
<?php
echo "Test Start\n";
runkit_function_copy('chop', '__chop');
runkit_function_rename('chop', '_chop');
echo _chop('A B '), "\n";
echo __chop('C D '), "\n";
echo "Test End\n";
EOT;
fpm_test(array($code, $code, $code), "-d extension=modules/runkit.so -d runkit.internal_override=1");
?>
Done
--EXPECTF--
[%s] NOTICE: fpm is running, pid %d
[%s] NOTICE: ready to handle connections
Test Start
A B
C D
Test End

Request ok
Test Start
A B
C D
Test End

Request ok
Test Start
A B
C D
Test End

Request ok
Done
--CLEAN--
<?php
include "_fpm_include.inc";
fpm_clean();
?>

Function Calls

None

Variables

None

Stats

MD5 043b1cbe642dec9a96fdfa6dc7b76bdd
Eval Count 0
Decode Time 99 ms