reference/reflection/reflectionparameter/getdefaultvalue.xml
ec2fe9a592f794978114ef5021db9f1d00c2e05d
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="reflectionparameter.getdefaultvalue" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>ReflectionParameter::getDefaultValue</refname>
...
...
@@ -9,12 +8,12 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
11
+
<methodsynopsis role="ReflectionParameter">
13
12
<modifier>public</modifier> <type>mixed</type><methodname>ReflectionParameter::getDefaultValue</methodname>
14
-
<void />
13
+
<void/>
15
14
</methodsynopsis>
16
15
<para>
17
-
Gets the default value of the parameter for a user-defined function or method.
16
+
Gets the default value of the parameter for any user-defined or internal function or method.
18
17
If the parameter is not optional a <classname>ReflectionException</classname>
19
18
will be thrown.
20
19
</para>
...
...
@@ -32,6 +31,31 @@
32
31
</para>
33
32
</refsect1>
34
33
34
+
<refsect1 role="changelog">
35
+
&reftitle.changelog;
36
+
<para>
37
+
<informaltable>
38
+
<tgroup cols="2">
39
+
<thead>
40
+
<row>
41
+
<entry>&Version;</entry>
42
+
<entry>&Description;</entry>
43
+
</row>
44
+
</thead>
45
+
<tbody>
46
+
<row>
47
+
<entry>8.0.0</entry>
48
+
<entry>
49
+
This method now allows getting the default value of parameters of built-in functions and
50
+
built-in class methods. Previously, a <classname>ReflectionException</classname> was thrown.
51
+
</entry>
52
+
</row>
53
+
</tbody>
54
+
</tgroup>
55
+
</informaltable>
56
+
</para>
57
+
</refsect1>
58
+

35
59
<refsect1 role="examples">
36
60
&reftitle.examples;
37
61
<para>
...
...
@@ -70,17 +94,6 @@ Default value: baz
70
94
</para>
71
95
</refsect1>
72
96
73
-
<refsect1 role="notes">
74
-
&reftitle.notes;
75
-
<note>
76
-
<para>
77
-
Due to implementation details, it is not possible to get the default value
78
-
of built-in functions or methods of built-in classes. Trying to do this will
79
-
result a <classname>ReflectionException</classname> being thrown.
80
-
</para>
81
-
</note>
82
-
</refsect1>
83
-

84
97
<refsect1 role="seealso">
85
98
&reftitle.seealso;
86
99
<para>
...
...
@@ -94,7 +107,6 @@ Default value: baz
94
107
</refsect1>
95
108

96
109
</refentry>
97
-

98
110
<!-- Keep this comment at the end of the file
99
111
Local variables:
100
112
mode: sgml
101
113