Doc #61078 [Opn->Csd]: Just a little mistake in the example
| From: | jeanseb@php.net | Date: | Thu, 28 Feb 2013 21:18:25 +0000 |
| Subject: | Doc #61078 [Opn->Csd]: Just a little mistake in the example | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9601@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61078&edit=1
ID: 61078
Updated by: jeanseb@php.net
Reported by: tomek at rychtyk dot pl
Summary: Just a little mistake in the example
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: Win 7
PHP Version: Irrelevant
-Assigned To:
+Assigned To: jeanseb
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Fixed in rev329577.
Previous Comments:
------------------------------------------------------------------------
[2012-02-14 09:41:52] phpmpan at mpan dot pl
r306288 changed this behaviour. As of 5.3.6 array_product returns 1, as expected.
A warning should be added to the documentation for versions before 5.3.6.
------------------------------------------------------------------------
[2012-02-13 22:36:54] tomek at rychtyk dot pl
Description:
------------
---
From manual page: http://www.php.net/function.array-product#refsect1-function.array-product-examples
---
I think there is a mistake in the example on that page as the following:
echo "product(array()) = " . array_product(array()) . "\n";
will display:
product(array()) = 0
not:
product(array()) = 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61078&edit=1