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-- Reflection Bug #26695 (Reflection API does not recognize mixed-case class hints) ..
Decoded Output download
--TEST--
Reflection Bug #26695 (Reflection API does not recognize mixed-case class hints)
--FILE--
<?php
class Foo {
}
class Bar {
function demo(foo $f) {
}
}
$class = new ReflectionClass('bar');
$methods = $class->getMethods();
$params = $methods[0]->getParameters();
$class = $params[0]->getClass();
var_dump($class->getName());
?>
--EXPECTF--
Deprecated: Method ReflectionParameter::getClass() is deprecated in %s on line %d
string(3) "Foo"
Did this file decode correctly?
Original Code
--TEST--
Reflection Bug #26695 (Reflection API does not recognize mixed-case class hints)
--FILE--
<?php
class Foo {
}
class Bar {
function demo(foo $f) {
}
}
$class = new ReflectionClass('bar');
$methods = $class->getMethods();
$params = $methods[0]->getParameters();
$class = $params[0]->getClass();
var_dump($class->getName());
?>
--EXPECTF--
Deprecated: Method ReflectionParameter::getClass() is deprecated in %s on line %d
string(3) "Foo"
Function Calls
None |
Stats
MD5 | 52c69aea3fd6d8505f608973e90f6544 |
Eval Count | 0 |
Decode Time | 70 ms |