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-- Exception thrown while converting ReflectionClassConstant to string --FILE-- <?ph..

Decoded Output download

--TEST--
Exception thrown while converting ReflectionClassConstant to string
--FILE--
<?php

class B {
    const X = self::UNKNOWN;
}

try {
    echo new ReflectionClassConstant('B', 'X');
} catch (Error $e) {
    echo $e->getMessage(), "
";
}

?>
--EXPECT--
Undefined constant self::UNKNOWN

Did this file decode correctly?

Original Code

--TEST--
Exception thrown while converting ReflectionClassConstant to string
--FILE--
<?php

class B {
    const X = self::UNKNOWN;
}

try {
    echo new ReflectionClassConstant('B', 'X');
} catch (Error $e) {
    echo $e->getMessage(), "\n";
}

?>
--EXPECT--
Undefined constant self::UNKNOWN

Function Calls

None

Variables

None

Stats

MD5 d87e0cf35abec30730bd8df06aae28ff
Eval Count 0
Decode Time 99 ms