#46795 [NEW]: Documentation for get_class_vars return value is inconsistent ("public")

From: Date: Mon, 08 Dec 2008 11:43:20 +0000
Subject: #46795 [NEW]: Documentation for get_class_vars return value is inconsistent ("public")
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1599@lists.php.net to get a copy of this message
From: phpbug dot classvars at sub dot noloop dot net Operating system: Linux PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Documentation for get_class_vars return value is inconsistent ("public") Description: ------------ The documentation at http://no2.php.net/manual/en/function.get-class-vars.php claims that: "Return Values Returns an associative array of default public properties of the class. The resulting array elements are in the form of varname => value." Apparently, since 5.2.7, the actual return value contains all default visible properties of the class depending on the scope of the caller. (Originally reported as a bug in http://bugs.php.net/bug.php?id=46761) Therefore I'm opening this bug report against documentation. The docs for this method should clarify that the return value may contain properties that are declared as "protected" or even "private" depending on calling scope. Also ,it would be nice if the changelog could be updated with an entry for PHP 5.2.7, since the behaviour changed since 5.2.6. -- Edit bug report at http://bugs.php.net/?id=46795&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46795&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46795&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46795&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46795&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46795&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46795&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46795&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46795&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46795&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46795&r=support Expected behavior: http://bugs.php.net/fix.php?id=46795&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46795&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46795&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46795&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46795&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46795&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46795&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46795&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46795&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46795&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46795&r=mysqlcfg

« previous php.doc.bugs (#1599) next »