|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-06-20 00:09 UTC] felipe@php.net
-Status: Open
+Status: Feedback
[2012-06-20 00:09 UTC] felipe@php.net
[2012-06-20 17:02 UTC] alejosimon at gmail dot com
[2013-02-17 23:06 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 20:00:01 2025 UTC |
Description: ------------ The some methods of reflection class don´t return the correctly values. Test script: --------------- <?php $object = new \stdClass ; $ref = new \ReflectionClass( $object ) ; var_dump( $ref->getName() ) ; var_dump( $ref->name ) ; print_r( $ref ) ; var_dump( $ref ) ; ?> Expected result: ---------------- string(8) "stdClass" string(8) "stdClass" ReflectionClass Object ( [name] => stdClass ) object(ReflectionClass)#37 (1) { ["name"]=> string(8) "stdClass" } Actual result: -------------- bool(false) string(8) "stdClass" ReflectionClass Object ( [namei��] => stdClass ) object(ReflectionClass)#37 (1) { ["name"]=> string(8) "stdClass" }