mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
32 lines
465 B
PHP
32 lines
465 B
PHP
--TEST--
|
|
Reflection Bug #30209 (ReflectionClass::getMethod() lowercases attribute)
|
|
--FILE--
|
|
<?php
|
|
|
|
class Foo
|
|
{
|
|
private $name = 'testBAR';
|
|
|
|
public function testBAR()
|
|
{
|
|
try
|
|
{
|
|
$class = new ReflectionClass($this);
|
|
var_dump($this->name);
|
|
$method = $class->getMethod($this->name);
|
|
var_dump($this->name);
|
|
}
|
|
|
|
catch (Exception $e) {}
|
|
}
|
|
}
|
|
|
|
$foo = new Foo;
|
|
$foo->testBAR();
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
string(7) "testBAR"
|
|
string(7) "testBAR"
|
|
===DONE===
|