Req #64043 [Opn->Sus]: extend get_object_vars() with 2nd parameter for scope
| From: | cmb@php.net | Date: | Mon, 02 Nov 2020 12:02:47 +0000 |
| Subject: | Req #64043 [Opn->Sus]: extend get_object_vars() with 2nd parameter for scope | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-230061@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
Updated by: cmb@php.net
Reported by: thbley at gmail dot com
Summary: extend get_object_vars() with 2nd parameter for
scope
-Status: Open
+Status: Suspended
Type: Feature/Change Request
Package: *General Issues
Operating System: any
PHP Version: 5.5.0alpha2
Block user comment: N
Private report: N
New Comment:
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>
Previous Comments:
------------------------------------------------------------------------
[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