|  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: -
Avg. Score:4.4 ± 0.8
Reproduced:0 of 1 (0.0%)
From: thbley at gmail dot com Assigned:
Status: Open Package: *General Issues
PHP Version: 5.5.0alpha2 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: thbley at gmail dot com
New email:
PHP Version: OS:


 [2013-01-22 02:51 UTC] thbley at gmail dot com
array get_object_vars ( object $object )

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


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Aug 10 16:01:23 2020 UTC