reference/info/functions/ini-get.xml
a0ae28d3bc85f927c22649ebd9a590b921534b7d
...
...
@@ -9,8 +9,8 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>string</type><methodname>ini_get</methodname>
13
-
<methodparam><type>string</type><parameter>varname</parameter></methodparam>
12
+
<type class="union"><type>string</type><type>false</type></type><methodname>ini_get</methodname>
13
+
<methodparam><type>string</type><parameter>option</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
Returns the value of the configuration option on success.
...
...
@@ -22,7 +22,7 @@
22
22
<para>
23
23
<variablelist>
24
24
<varlistentry>
25
-
<term><parameter>varname</parameter></term>
25
+
<term><parameter>option</parameter></term>
26
26
<listitem>
27
27
<para>
28
28
The configuration option name.
...
...
@@ -68,7 +68,7 @@ function return_bytes($val) {
68
68
$val = trim($val);
69
69
$last = strtolower($val[strlen($val)-1]);
70
70
switch($last) {
71
-
// The 'G' modifier is available since PHP 5.1.0
71
+
// The 'G' modifier is available
72
72
case 'g':
73
73
$val *= 1024;
74
74
case 'm':
...
...
@@ -117,7 +117,7 @@ post_max_size in bytes = 8388608
117
117
<link linkend="ini.upload-max-filesize">upload_max_filesize</link>, are
118
118
stored in the &php.ini; file in shorthand notation.
119
119
<function>ini_get</function> will return the exact string stored in the
120
-
&php.ini; file and <emphasis>NOT</emphasis> its <type>integer</type>
120
+
&php.ini; file and <emphasis>NOT</emphasis> its <type>int</type>
121
121
equivalent. Attempting normal arithmetic functions on these values
122
122
will not have otherwise expected results. The example above shows one
123
123
way to convert shorthand notation into bytes, much like how the PHP
...
...
@@ -132,30 +132,6 @@ post_max_size in bytes = 8388608
132
132
</note>
133
133
</refsect1>
134
134

135
-
<refsect1 role="changelog">
136
-
&reftitle.changelog;
137
-
<para>
138
-
<informaltable>
139
-
<tgroup cols="2">
140
-
<thead>
141
-
<row>
142
-
<entry>&Version;</entry>
143
-
<entry>&Description;</entry>
144
-
</row>
145
-
</thead>
146
-
<tbody>
147
-
<row>
148
-
<entry>5.3.0</entry>
149
-
<entry>Previously, the empty string was returned if the configuration
150
-
option didn't exist. now, &false; is returned instead.
151
-
</entry>
152
-
</row>
153
-
</tbody>
154
-
</tgroup>
155
-
</informaltable>
156
-
</para>
157
-
</refsect1>
158
-
159
135
<refsect1 role="seealso">
160
136
&reftitle.seealso;
161
137
<para>
...
...
@@ -169,7 +145,6 @@ post_max_size in bytes = 8388608
169
145
</refsect1>
170
146

171
147
</refentry>
172
-

173
148
<!-- Keep this comment at the end of the file
174
149
Local variables:
175
150
mode: sgml
176
151