From: alejosimon at gmail dot com
Operating system: Win7 x64
PHP version: 5.4.4
Package: Reflection related
Bug Type: Bug
Bug description:Reflection problem
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 bug report at https://bugs.php.net/bug.php?id=62366&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=62366&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=62366&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=62366&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=62366&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=62366&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=62366&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=62366&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=62366&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=62366&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=62366&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=62366&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=62366&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=62366&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=62366&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=62366&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62366&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=62366&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=62366&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=62366&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=62366&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=62366&r=mysqlcfg