Re: Re: PHP 4.0 Bug #5226 Updated: arrayfields reorganized when using array_pop
| From: | waldschrott | Date: | Tue, 27 Jun 2000 14:35:22 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #5226 Updated: arrayfields reorganized when using array_pop | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-22492@lists.php.net to get a copy of this message | ||
My opinion is that *array_pop()* inherents the meaning to *pop* the last element (like assembler registers) while not touching the rest,
I would prefer a slower solution (copying array, returning last one, unsetting last element) until a better solution can be found, rather than an *array_pop_and_kill_numeric_indicies()*, that´s my opinion (TM)
I did not want to say that beeing unable to have numeric string indicies is a bug in zend, that´s the way it works (would be fine though), if you thought of
regards
Stanislav Malyshev wrote:
w>> I?ve you had enabled numbers as strings for arrays indicies as I w>> proposed a time ago in addition to be able to have numeric indicies w>> stored as an integer, one could work around that bug :) That's not really a bug. Not more than having to write $ before variable names. It's how Zend engine works.-- 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 ° · ° . ¤ ·