Skip to content

Commit ccc438a

Browse files
authored
Update miscellaneous variable handling functions. (#579)
Fix `print_r` Notes section before examples. Fix `is_object`, `gettype` Example section before changelog. Fix `get_defined_vars` No parameters sections.
1 parent 8bf1201 commit ccc438a

File tree

4 files changed

+60
-56
lines changed

4 files changed

+60
-56
lines changed

reference/var/functions/get-defined-vars.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
called.
2121
</para>
2222
</refsect1>
23+
<refsect1 role="parameters">
24+
&reftitle.parameters;
25+
&no.function.parameters;
26+
</refsect1>
2327
<refsect1 role="returnvalues">
2428
&reftitle.returnvalues;
2529
<para>

reference/var/functions/gettype.xml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,31 @@
7575
</para>
7676
</refsect1>
7777

78+
<refsect1 role="changelog">
79+
&reftitle.changelog;
80+
<para>
81+
<informaltable>
82+
<tgroup cols="2">
83+
<thead>
84+
<row>
85+
<entry>&Version;</entry>
86+
<entry>&Description;</entry>
87+
</row>
88+
</thead>
89+
<tbody>
90+
<row>
91+
<entry>7.2.0</entry>
92+
<entry>
93+
Closed resources are now reported as <literal>'resource (closed)'</literal>.
94+
Previously the returned value for closed resources were <literal>'unknown type'</literal>.
95+
</entry>
96+
</row>
97+
</tbody>
98+
</tgroup>
99+
</informaltable>
100+
</para>
101+
</refsect1>
102+
78103
<refsect1 role="examples">
79104
&reftitle.examples;
80105
<para>
@@ -107,31 +132,6 @@ string
107132
</para>
108133
</refsect1>
109134

110-
<refsect1 role="changelog">
111-
&reftitle.changelog;
112-
<para>
113-
<informaltable>
114-
<tgroup cols="2">
115-
<thead>
116-
<row>
117-
<entry>&Version;</entry>
118-
<entry>&Description;</entry>
119-
</row>
120-
</thead>
121-
<tbody>
122-
<row>
123-
<entry>7.2.0</entry>
124-
<entry>
125-
Closed resources are now reported as <literal>'resource (closed)'</literal>.
126-
Previously the returned value for closed resources were <literal>'unknown type'</literal>.
127-
</entry>
128-
</row>
129-
</tbody>
130-
</tgroup>
131-
</informaltable>
132-
</para>
133-
</refsect1>
134-
135135
<refsect1 role="seealso">
136136
&reftitle.seealso;
137137
<para>

reference/var/functions/is-object.xml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,32 @@
4141
</para>
4242
</refsect1>
4343

44+
<refsect1 role="changelog">
45+
&reftitle.changelog;
46+
<para>
47+
<informaltable>
48+
<tgroup cols="2">
49+
<thead>
50+
<row>
51+
<entry>&Version;</entry>
52+
<entry>&Description;</entry>
53+
</row>
54+
</thead>
55+
<tbody>
56+
<row>
57+
<entry>7.2.0</entry>
58+
<entry>
59+
<function>is_object</function> now returns &true; for unserialized objects without
60+
a class definition (class of <classname>__PHP_Incomplete_Class</classname>). Previously
61+
&false; was returned.
62+
</entry>
63+
</row>
64+
</tbody>
65+
</tgroup>
66+
</informaltable>
67+
</para>
68+
</refsect1>
69+
4470
<refsect1 role="examples">
4571
&reftitle.examples;
4672
<para>
@@ -74,32 +100,6 @@ var_dump(get_students($obj));
74100
</para>
75101
</refsect1>
76102

77-
<refsect1 role="changelog">
78-
&reftitle.changelog;
79-
<para>
80-
<informaltable>
81-
<tgroup cols="2">
82-
<thead>
83-
<row>
84-
<entry>&Version;</entry>
85-
<entry>&Description;</entry>
86-
</row>
87-
</thead>
88-
<tbody>
89-
<row>
90-
<entry>7.2.0</entry>
91-
<entry>
92-
<function>is_object</function> now returns &true; for unserialized objects without
93-
a class definition (class of <classname>__PHP_Incomplete_Class</classname>). Previously
94-
&false; was returned.
95-
</entry>
96-
</row>
97-
</tbody>
98-
</tgroup>
99-
</informaltable>
100-
</para>
101-
</refsect1>
102-
103103
<refsect1 role="seealso">
104104
&reftitle.seealso;
105105
<para>

reference/var/functions/print-r.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@
6767
</para>
6868
</refsect1>
6969

70-
<refsect1 role="notes">
71-
&reftitle.notes;
72-
&note.uses-ob-php70;
73-
</refsect1>
74-
7570
<refsect1 role="examples">
7671
&reftitle.examples;
7772
<para>
@@ -122,6 +117,11 @@ $results = print_r($b, true); // $results now contains output from print_r
122117
</para>
123118
</refsect1>
124119

120+
<refsect1 role="notes">
121+
&reftitle.notes;
122+
&note.uses-ob-php70;
123+
</refsect1>
124+
125125
<refsect1 role="seealso">
126126
&reftitle.seealso;
127127
<para>

0 commit comments

Comments
 (0)