Re: PHP 4.0 Bug #5226 Updated: arrayfields reorganized when using array_pop

From: Date: Mon, 26 Jun 2000 19:12:56 +0000
Subject: 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-22397@lists.php.net to get a copy of this message
but what i do not unterstand why array_pop rearanges the arraykies. before the array_pop-funct is called the first array-key was 1. after i "called" array_pop the first array_key is 0 ... i think that is not array_pop should do. what array_pop should do, is pop the last element of the array and leave "the rest of the array" as it is. thank you frank bretschneider Bug Database wrote: > ID: 5226 > Updated by: stas > Reported By: bretschneider@freestyling.de > Status: Closed > Bug Type: Scripting Engine problem > Assigned To: > Comments: > > AFAIU that's exactly what pop should do - pop element from array. > > Why should it insert empty element on top? > > Full Bug description available at: ÁŸüW¼0>" > "•†atu�http://bugs.php.net/version4/?id=5226 -- --------------------------------------------------------- freestyle web services - frank bretschneider - CTO rhodiusstr. 4 - 51065 cologne - germany tel.: +49 (0)221 611924 - Fax: +49 (0)221 222 9549 mailto:bretschneider@freestyling.de - http://freestyling.de

Attachment: [text/x-vcard] Card for frank bretschneider bretschneider.vcf
« previous php.dev (#22397) next »