Bug #66821 [NEW]: stdClass properties cant be reflected
| From: | wjaspers4 at gmail dot com | Date: | Tue, 04 Mar 2014 19:02:19 +0000 |
| Subject: | Bug #66821 [NEW]: stdClass properties cant be reflected | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-184518@lists.php.net to get a copy of this message | ||
From: wjaspers4 at gmail dot com
Operating system: Linux 3.2.0-23-generic x86_64
PHP version: 5.5.9
Package: Reflection related
Bug Type: Bug
Bug description:stdClass properties cant be reflected
Description:
------------
A stdClass object cannot reflect its properties correctly.
Normal objects do reflect as expected.
Test script:
---------------
https://gist.github.com/wjaspers/9353164
Expected result:
----------------
NULL
NULL
Actual result:
--------------
NULL
PHP Fatal error: Uncaught exception 'ReflectionException' with message
'Property publicNullVar does not exist' in /test.php:19
Stack trace:
#0 /test.php(19): ReflectionClass->getProperty('publicNullVar')
#1 /test.php(49): Helper->__get('publicNullVar')
#2 {main}
thrown in /test.php on line 19
--
Edit bug report at https://bugs.php.net/bug.php?id=66821&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66821&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66821&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66821&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66821&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66821&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66821&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66821&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66821&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66821&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66821&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66821&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66821&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66821&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66821&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66821&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66821&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66821&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66821&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66821&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66821&r=mysqlcfg