Sort the changelog properly, kill bogus warning and wrong error return value. fixes bug#55426

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@315057 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hannes Magnusson 2011-08-17 10:50:30 +00:00
parent c0c2f5bfad
commit eb65419051

View file

@ -16,12 +16,6 @@
Returns <parameter>base</parameter> raised to the power of
<parameter>exp</parameter>.
</para>
<warning>
<para>
In PHP 4.0.6 and earlier <function>pow</function> always returned
a <type>float</type>, and did not issue warnings.
</para>
</warning>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
@ -52,7 +46,6 @@
<parameter>base</parameter> raised to the power of <parameter>exp</parameter>.
If the result can be represented as integer it will be returned as type
<type>integer</type>, else it will be returned as type <type>float</type>.
If the power cannot be computed &false; will be returned instead.
</para>
</refsect1>
<refsect1 role="changelog">
@ -68,20 +61,19 @@
</thead>
<tbody>
<row>
<entry>Since 4.0.6</entry>
<entry>4.2.0</entry>
<entry>
No warning is emitted on errors, even if the value can't be computed.
</entry>
</row>
<row>
<entry>4.0.6</entry>
<entry>
The function will now return <type>integer</type> results if possible,
before this it always returned a <type>float</type> result. For older
versions, you may receive a bogus result for complex numbers.
</entry>
</row>
<row>
<entry>Since 4.2.0</entry>
<entry>
PHP stops to emit a warning if the value can't be computed,
it will now silently return &false; only.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
@ -108,6 +100,17 @@ echo pow(-1, 5.5); // PHP <=4.0.6 1.#IND
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
This function will convert all input to a number, even non-scalar values,
which could lead to <literal>weird</literal> results.
</para>
</note>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>