cvs: phpdoc /en/reference/classobj/functions get-object-vars.xml
| From: | Felipe Pena | Date: | Wed, 09 Jul 2008 18:13:24 +0000 |
| Subject: | cvs: phpdoc /en/reference/classobj/functions get-object-vars.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1849@lists.php.net to get a copy of this message | ||
felipe Wed Jul 9 18:13:24 2008 UTC
Modified files:
/phpdoc/en/reference/classobj/functions get-object-vars.xml
Log:
Fixed bug #45469 (get_object_vars($this) varies from what documentation says)
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/classobj/functions/get-object-vars.xml?r1=1.12&r2=1.13&diff_format=u
Index: phpdoc/en/reference/classobj/functions/get-object-vars.xml
diff -u phpdoc/en/reference/classobj/functions/get-object-vars.xml:1.12
phpdoc/en/reference/classobj/functions/get-object-vars.xml:1.13
--- phpdoc/en/reference/classobj/functions/get-object-vars.xml:1.12 Fri Apr 18 22:02:07 2008
+++ phpdoc/en/reference/classobj/functions/get-object-vars.xml Wed Jul 9 18:13:23 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.12 $ -->
+<!-- $Revision: 1.13 $ -->
<refentry xml:id="function.get-object-vars" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>get_object_vars</refname>
@@ -12,7 +12,8 @@
<methodparam><type>object</type><parameter>object</parameter></methodparam>
</methodsynopsis>
<para>
- Gets the public properties of the given <parameter>object</parameter>.
+ Gets the accessible non-static properties of the given
+ <parameter>object</parameter> according to scope.
</para>
</refsect1>
<refsect1 role="parameters">
@@ -33,9 +34,9 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns an associative array of defined object public properties for the
- specified <parameter>object</parameter>. If a property have not been
- assigned a value, it will be returned with a &null; value.
+ Returns an associative array of defined object accessible non-static properties
+ for the specified <parameter>object</parameter> in scope. If a property have
+ not been assigned a value, it will be returned with a &null; value.
</para>
</refsect1>
<refsect1 role="changelog">
@@ -95,6 +96,16 @@
["c"]=>
NULL
}
+array(4) {
+ ["a"]=>
+ NULL
+ ["b"]=>
+ int(1)
+ ["c"]=>
+ NULL
+ ["d"]=>
+ NULL
+}
]]>
</screen>
</example>