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: -
Votes:5
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Aug 23 05:01:27 2019 UTC