Req #64043 [Sus->Csd]: extend get_object_vars() with 2nd parameter for scope
| From: | thbley at gmail dot com | Date: | Mon, 02 Nov 2020 13:30:17 +0000 |
| Subject: | Req #64043 [Sus->Csd]: extend get_object_vars() with 2nd parameter for scope | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-230062@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64043&edit=1
ID: 64043
User updated by: thbley at gmail dot com
Reported by: thbley at gmail dot com
Summary: extend get_object_vars() with 2nd parameter for
scope
-Status: Suspended
+Status: Closed
Type: Feature/Change Request
Package: *General Issues
Operating System: any
PHP Version: 5.5.0alpha2
Block user comment: N
Private report: N
New Comment:
Closing, no longer relevant.
Previous Comments:
------------------------------------------------------------------------
[2020-11-02 12:02:47] cmb@php.net
Given that this information is already avaiable via
ReflectionClass::getProperties(), this feature requires discussion
for which this bug tracker is unsuitable. Therefore, I've you're
still interested in this feature, please forward your request to
the internals mailing list[1]. For the time being, I'm suspending
this ticket.
[1] <https://www.php.net/mailing-lists.php#internals>
------------------------------------------------------------------------
[2013-01-22 02:51:21] thbley at gmail dot com
Description:
------------
old:
array get_object_vars ( object $object )
new:
array get_object_vars ( object $object [, int SCOPE_PUBLIC | SCOPE_SELF ] )
get_object_vars($obj); // return by current scope (same as before)
get_object_vars($obj, SCOPE_PUBLIC); // return public members, ignore current scope
get_object_vars($obj, SCOPE_SELF); // return public, private, protected members, ignore current
scope
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64043&edit=1