#43496 [NEW]: doc updation related to array_combile()/array
| From: | dharma dot yp at in dot ibm dot com | Date: | Tue, 04 Dec 2007 12:02:32 +0000 |
| Subject: | #43496 [NEW]: doc updation related to array_combile()/array | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-318@lists.php.net to get a copy of this message | ||
From: dharma dot yp at in dot ibm dot com
Operating system: Not applicable
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: doc updation related to array_combile()/array
Description:
------------
This bug is opened with a reference to the bug#43424 and Ilia
Alshanetsky's response to it in which she suggested that a doc defect be
opened to address this.
Please use the details in bug#43424 and below response.
Ilia Alshanetsky <ilia@prohost.org>
01/12/2007 03:12
To
Dharmanna Pidagannavar/India/IBM@IBMIN
Subject
Re: Bug #43424 [Asn->Bgs]: array_combine() doesn't truncate float values
while using them as keys
The documentation is flawed in this case. If you can, could you please
create a phpdoc bug report.
On 29-Nov-07, at 2:19 AM, Dharmanna Pidagannavar wrote:
> Hi Jani/Iliaa,
> Thanks for explanation, now i understand it better.
>
> It would be nice if the documentation is also changed to reflect the
> same
> at following location:
> 1) array_combine documentation at :
> http://in.php.net/manual/en/function.array-combine.php
> and/or
> 2) Array documentation at :
> http://www.php.net/manual/en/language.types.array.php
>
> The documentation read as:
> "A key may be either an integer or a string. If a key is the
> standard
> representation of an integer, it will be interpreted as such (i.e.
> "8" will
> be interpreted as 8, while "08" will be interpreted as "08"). Floats
> in key
> are truncated to integer. There are no different indexed and
> associative
> array types in PHP; there is only one array type, which can both
> contain
> integer and string indices. "
>
> Thank you,
>
> Regards
> Dharma
>
> Dharmanna Pidagannavar, IBM India.
> ----- Forwarded by Dharmanna Pidagannavar/India/IBM on 29/11/2007
--
Edit bug report at http://bugs.php.net/?id=43496&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43496&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43496&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43496&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43496&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43496&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=43496&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43496&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43496&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43496&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43496&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43496&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=43496&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=43496&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43496&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43496&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43496&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43496&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43496&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43496&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43496&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43496&r=mysqlcfg