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

Reply via email to