Re: Re: PHP 4.0 Bug #5226 Updated: arrayfields reorganized when using array_pop
| From: | waldschrott | Date: | Tue, 27 Jun 2000 14:21:05 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #5226 Updated: arrayfields reorganized when using array_pop | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-22490@lists.php.net to get a copy of this message | ||
I?ve you had enabled numbers as strings for arrays indicies as I proposed a time ago in addition to be able to have numeric indicies stored as an integer, one could work around that bug :)
please don?t kill me :)
regards
Andrei Zmievski wrote:
On Tue, 27 Jun 2000, Stanislav Malyshev wrote: We have another trouble here. <? $a["abc"] = 1; $a["4"] = 2; $a["def"] = 3; array_pop($a); var_dump($a); ?> gives: array(2) { ["abc"]=> int(1) [0]=> int(2) } It killed my "4" and made it be 0. Grrr... That's because Zend interprets "4" as numeric key 4, which obviously relates to what we've been discussing here. -Andrei Linux is like living in a teepee. No Windows, no Gates, Apache in house.-- o----------0-¬---------O-·---¬----o---®-----o o O ° . | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ? ° · 0°·³°²'²³-¹'³?³°^°³~³²³°'³²²?³²^³¹³²°²³`³º³°Þ ° o © ° . · | psychedelic experience | gott@kiffen.de | O ° o ° o-¬--o--0-----©-·--O-----o-----0-?----------o 0 ° · ° . ? ·- Usenet signature