reference/var/functions/is-object.xml
ccc438a27bae31d71fe2ca7dc095360db5bc1af6
...
...
@@ -8,10 +8,10 @@
8
8

9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
-
<methodsynopsis>
12
-
<type>bool</type><methodname>is_object</methodname>
13
-
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
14
-
</methodsynopsis>
11
+
<methodsynopsis>
12
+
<type>bool</type><methodname>is_object</methodname>
13
+
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
14
+
</methodsynopsis>
15
15
<para>
16
16
Finds whether the given variable is an object.
17
17
</para>
...
...
@@ -22,7 +22,7 @@
22
22
<para>
23
23
<variablelist>
24
24
<varlistentry>
25
-
<term><parameter>var</parameter></term>
25
+
<term><parameter>value</parameter></term>
26
26
<listitem>
27
27
<para>
28
28
The variable being evaluated.
...
...
@@ -36,11 +36,37 @@
36
36
<refsect1 role="returnvalues">
37
37
&reftitle.returnvalues;
38
38
<para>
39
-
Returns &true; if <parameter>var</parameter> is an <type>object</type>,
39
+
Returns &true; if <parameter>value</parameter> is an <type>object</type>,
40
40
&false; otherwise.
41
41
</para>
42
42
</refsect1>
43
43

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
+

44
70
<refsect1 role="examples">
45
71
&reftitle.examples;
46
72
<para>
...
...
@@ -74,17 +100,6 @@ var_dump(get_students($obj));
74
100
</para>
75
101
</refsect1>
76
102

77
-
<refsect1 role="notes">
78
-
&reftitle.notes;
79
-
<note>
80
-
<para>
81
-
This function will return &false; if used on an unserialized object
82
-
where the class definition is not present (even though
83
-
<function>gettype</function> returns <type>object</type>).
84
-
</para>
85
-
</note>
86
-
</refsect1>
87
-

88
103
<refsect1 role="seealso">
89
104
&reftitle.seealso;
90
105
<para>
...
...
@@ -99,7 +114,6 @@ var_dump(get_students($obj));
99
114
</refsect1>
100
115

101
116
</refentry>
102
-

103
117
<!-- Keep this comment at the end of the file
104
118
Local variables:
105
119
mode: sgml
106
120