|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-03-29 18:05 UTC] 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) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 02:00:01 2025 UTC |
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