php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #64043 extend get_object_vars() with 2nd parameter for scope
Submitted: 2013-01-22 02:51 UTC Modified: 2020-11-02 13:30 UTC
Votes:5
Avg. Score:4.4 ± 0.8
Reproduced:0 of 1 (0.0%)
From: thbley at gmail dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 5.5.0alpha2 OS: any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thbley at gmail dot com
New email:
PHP Version: OS:

 

 [2013-01-22 02:51 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-11-02 12:02 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2020-11-02 12:02 UTC] 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>
 [2020-11-02 13:30 UTC] thbley at gmail dot com
-Status: Suspended +Status: Closed
 [2020-11-02 13:30 UTC] thbley at gmail dot com
Closing, no longer relevant.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 15:01:36 2025 UTC