Clarify that shorthand byte values are cast to integer

This integrates user note 90781 and 123446.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346458 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2018-12-28 15:22:50 +00:00
parent ff7a473972
commit 83926e1685

View file

@ -462,6 +462,8 @@ foreach ($headers as $name => $content) {
<literal>1048576</literal> bytes. <literal>1K</literal> equals one
Kilobyte or <literal>1024</literal> bytes. These shorthand notations may
be used in &php.ini; and in the <function>ini_set</function> function.
Note that the numeric value is cast to <type>integer</type>;
for instance, <literal>0.5M</literal> is interpreted as <literal>0</literal>.
</para>
<note>
<title>kilobyte versus kibibyte</title>