Re: [PHP-DEV] RE: PHP 4.0 Bug #8106 Updated: array_pop problem when using against an array returned from a class From: Jani Taskinen (sniper <email protected>)
Date: 12/07/00

On Thu, 7 Dec 2000, Andi Gutmans wrote:

>I think array_pop() returns NULL to indicate it has no further elements.
>This is just in case you are saving bool() values in the array. It makes
>more sense.

Of course I didn't think of that situation. :(
So no bug. But documentation should mention this too.
For both array_pop() and array_shift().

--Jani

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>