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,37 +117,19 @@ 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
124
124
source does it.
125
125
</para>
126
126
</note>
127
-
</refsect1>
128
-

129
-
<refsect1 role="changelog">
130
-
&reftitle.changelog;
131
-
<para>
132
-
<informaltable>
133
-
<tgroup cols="2">
134
-
<thead>
135
-
<row>
136
-
<entry>&Version;</entry>
137
-
<entry>&Description;</entry>
138
-
</row>
139
-
</thead>
140
-
<tbody>
141
-
<row>
142
-
<entry>5.3.0</entry>
143
-
<entry>Previously, the empty string was returned if the configuration
144
-
option didn't exist. now, &false; is returned instead.
145
-
</entry>
146
-
</row>
147
-
</tbody>
148
-
</tgroup>
149
-
</informaltable>
150
-
</para>
127
+
<note>
128
+
<para>
129
+
<function>ini_get</function> can't read "array" ini options such as
130
+
pdo.dsn.*, and returns &false; in this case.
131
+
</para>
132
+
</note>
151
133
</refsect1>
152
134

153
135
<refsect1 role="seealso">
...
...
@@ -163,7 +145,6 @@ post_max_size in bytes = 8388608
163
145
</refsect1>
164
146

165
147
</refentry>
166
-

167
148
<!-- Keep this comment at the end of the file
168
149
Local variables:
169
150
mode: sgml
170
151