Bug #62366 [Opn->Fbk]: Reflection problem
Edit report at https://bugs.php.net/bug.php?id=62366&edit=1
ID: 62366
Updated by: felipe@php.net
Reported by: alejosimon at gmail dot com
Summary: Reflection problem
-Status: Open
+Status: Feedback
Type: Bug
Package: Reflection related
Operating System: Win7 x64
PHP Version: 5.4.4
Block user comment: N
Private report: N
New Comment:
I can't reproduce it. Are you using any external extension?
Previous Comments:
------------------------------------------------------------------------
[2012-06-19 22:29:39] alejosimon at gmail dot com
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"
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62366&edit=1
Thread (4 messages)