Doc #68106 [Asn]: Typo in ArrayIterator::setFlags
| From: | salathe@php.net | Date: | Wed, 09 Sep 2015 12:25:47 +0000 |
| Subject: | Doc #68106 [Asn]: Typo in ArrayIterator::setFlags | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12741@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68106&edit=1
ID: 68106
Updated by: salathe@php.net
Reported by: log dot kot at gmail dot com
Summary: Typo in ArrayIterator::setFlags
Status: Assigned
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Assigned To: salathe
Block user comment: N
Private report: N
New Comment:
> The English manual lists the constants with their values (1 and 2) from the beginning.
Not for ArrayIterator, however ArrayObject does correctly describe them.
Previous Comments:
------------------------------------------------------------------------
[2015-09-08 20:31:31] cmb@php.net
> Documentation says that flags must be bitmask of 0 and 1.
Where does it say so? The English manual lists the constants with
their values (1 and 2) from the beginning. Is this perhaps a
translation issue?
------------------------------------------------------------------------
[2014-09-26 09:43:34] log dot kot at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/arrayiterator.setflags
---
Documentation says that flags must be bitmask of 0 and 1.
But real values are:
1 = ArrayObject::STD_PROP_LIST
2 = ArrayObject::ARRAY_AS_PROPS
See http://php.net/manual/en/arrayobject.setflags.php
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68106&edit=1