Bug #61555 [Com]: Invalid key in Reflection class
| From: | gm dot godlewski at gmail dot com | Date: | Mon, 02 Jul 2012 21:32:43 +0000 |
| Subject: | Bug #61555 [Com]: Invalid key in Reflection class | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-171701@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61555&edit=1
ID: 61555
Comment by: gm dot godlewski at gmail dot com
Reported by: tlr at seegno dot com
Summary: Invalid key in Reflection class
Status: Not a bug
Type: Bug
Package: Reflection related
Operating System: CentOS 6.2
PHP Version: 5.4.0
Block user comment: N
Private report: N
New Comment:
I've encountered the same problem on 5.4.3.
Script:
-------
<?php
class Foo
{
public $propertyA;
public $propertyB;
protected $propertyC;
private $propertyD;
}
$class = new ReflectionClass('Foo');
foreach ($class->getProperties() as $property) {
var_dump($property->getName());
}
CLI:
----
string(9): "propertyA"
string(9): "propertyB"
string(9): "propertyC"
string(9): "propertyD"
APACHE + FCGID:
---------------
boolean false
boolean false
boolean false
boolean false
Previous Comments:
------------------------------------------------------------------------
[2012-03-29 18:24:41] tlr at seegno dot com
It appears it has to do with the version installed:
http://blog.famillecollet.com/pages/Config-en
------------------------------------------------------------------------
[2012-03-29 18:05:56] tlr at seegno dot com
Description:
------------
When creating a new Reflection object the key "name" displays a weird character.
Expected result:
----------------
ReflectionClass Object
([name] => Symfony\Bundle\FrameworkBundle\EventListener\SessionListener)
Actual result:
--------------
ReflectionClass Object
([nameiËÂ¥] => Symfony\Bundle\FrameworkBundle\EventListener\SessionListener)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61555&edit=1