2003-12-22 22:53:48 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #26695 (Reflection API does not recognize mixed-case class hints)
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
|
|
|
class Foo {
|
|
|
|
}
|
|
|
|
|
|
|
|
class Bar {
|
|
|
|
function demo(foo $f) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-03-30 21:13:05 +00:00
|
|
|
$class = new ReflectionClass('bar');
|
2003-12-22 22:53:48 +00:00
|
|
|
$methods = $class->getMethods();
|
|
|
|
$params = $methods[0]->getParameters();
|
|
|
|
|
2006-02-20 09:45:00 +00:00
|
|
|
$class = $params[0]->getDeclaringClass();
|
2003-12-22 22:53:48 +00:00
|
|
|
|
|
|
|
var_dump($class->getName());
|
|
|
|
?>
|
|
|
|
===DONE===
|
|
|
|
--EXPECT--
|
|
|
|
string(3) "Foo"
|
2005-08-15 14:37:55 +00:00
|
|
|
===DONE===
|
|
|
|
--UEXPECT--
|
|
|
|
unicode(3) "Foo"
|
|
|
|
===DONE===
|