Req #66527 [NEW]: For array of objects variables

From: Date: Tue, 21 Jan 2014 07:38:38 +0000
Subject: Req #66527 [NEW]: For array of objects variables
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183926@lists.php.net to get a copy of this message
From: aroramanish63 at gmail dot com Operating system: windows 7 PHP version: 5.4.24 Package: Performance problem Bug Type: Feature/Change Request Bug description:For array of objects variables Description: ------------ I have some code which is used to get objects properties in json using json_decode. In the objects properties some properties are private or protected. when i print array using var_dump then its not showing the protected data objects properties. So my question is that, How to create objects array which is use to include the protected and private properties. Thanks in advance. Test script: --------------- I have some code which is used to get objects properties in json using json_decode. In the objects properties some properties are private or protected. when i print array using var_dump then its not showing the protected data objects properties. So my question is that, How to create objects array which is use to include the protected and private properties. Thanks in advance. Expected result: ---------------- I have some code which is used to get objects properties in json using json_decode. In the objects properties some properties are private or protected. when i print array using var_dump then its not showing the protected data objects properties. So my question is that, How to create objects array which is use to include the protected and private properties. Thanks in advance. Actual result: -------------- I have some code which is used to get objects properties in json using json_decode. In the objects properties some properties are private or protected. when i print array using var_dump then its not showing the protected data objects properties. So my question is that, How to create objects array which is use to include the protected and private properties. Thanks in advance. -- Edit bug report at https://bugs.php.net/bug.php?id=66527&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66527&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66527&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66527&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66527&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66527&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66527&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66527&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66527&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66527&r=support Expected behavior: https://bugs.php.net/fix.php?id=66527&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66527&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66527&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66527&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66527&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66527&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66527&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66527&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66527&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66527&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66527&r=mysqlcfg

« previous php.bugs (#183926) next »