reference/array/functions/array-product.xml
443d81b33e6537a000cc235c2a11748ba8d56232
...
...
@@ -9,7 +9,7 @@ xmlns:xlink="http://www.w3.org/1999/xlink">
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>number</type><methodname>array_product</methodname>
12
+
<type class="union"><type>int</type><type>float</type></type><methodname>array_product</methodname>
13
13
<methodparam><type>array</type><parameter>array</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
...
...
@@ -38,7 +38,8 @@ xmlns:xlink="http://www.w3.org/1999/xlink">
38
38
Returns the product as an integer or float.
39
39
</para>
40
40
</refsect1>
41
-
<refsect1 role="changelog"><!-- {{{ -->
41
+

42
+
<refsect1 role="changelog">
42
43
&reftitle.changelog;
43
44
<para>
44
45
<informaltable>
...
...
@@ -51,17 +52,20 @@ xmlns:xlink="http://www.w3.org/1999/xlink">
51
52
</thead>
52
53
<tbody>
53
54
<row>
54
-
<entry>5.3.6</entry>
55
+
<entry>8.3.0</entry>
55
56
<entry>
56
-
The product of an empty array is now 1, when before this function would
57
-
return 0 for an empty array.
57
+
Now emits <constant>E_WARNING</constant> when <parameter>array</parameter> values
58
+
cannot be converted to &integer; or &float;.
59
+
Previously &array;s and &object;s where ignored whilst every other value was cast to &integer;.
60
+
Moreover, objects that define a numeric cast (e.g. <classname>GMP</classname>) are now cast instead of ignored.
58
61
</entry>
59
62
</row>
60
63
</tbody>
61
64
</tgroup>
62
65
</informaltable>
63
66
</para>
64
-
</refsect1><!-- }}} -->
67
+
</refsect1>
68
+

65
69
<refsect1 role="examples">
66
70
&reftitle.examples;
67
71
<para>
68
72