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-- removing magic __callstatic method --SKIPIF-- <?php if(!extension_loaded("runkit"..

Decoded Output download

--TEST--
removing magic __callstatic method
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip";
      if(array_shift(explode('.', PHP_VERSION)) < 5) print "skip";
      if(version_compare(PHP_VERSION, '5.3.0', '<')) print "skip";
?>
--FILE--
<?php
class Test {
    static function __callstatic($m, $args) {echo '__callstatic';}
}

Test::method();
runkit_method_remove("Test", "__callstatic");
Test::method();
?>
--EXPECTF--
__callstatic
Fatal error: Call to undefined method Test::method() in %s on line %d

Did this file decode correctly?

Original Code

--TEST--
removing magic __callstatic method
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip";
      if(array_shift(explode('.', PHP_VERSION)) < 5) print "skip";
      if(version_compare(PHP_VERSION, '5.3.0', '<')) print "skip";
?>
--FILE--
<?php
class Test {
    static function __callstatic($m, $args) {echo '__callstatic';}
}

Test::method();
runkit_method_remove("Test", "__callstatic");
Test::method();
?>
--EXPECTF--
__callstatic
Fatal error: Call to undefined method Test::method() in %s on line %d

Function Calls

extension_loaded 1

Variables

None

Stats

MD5 f180faf233b2cd483218ff4d08cdb9d8
Eval Count 0
Decode Time 95 ms