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

At 01:17 AM 12/6/00 +0200, Jani Taskinen wrote:
>On Wed, 6 Dec 2000, Andrew Broadley wrote:
>
> >I found out the problem, since im just getting used to PHP coming from Perl,
> >I didn't know that you can have indexed strings, which coming from Perl,
> >look like arrays at first glace, all I had to do was define $query as an
> >array (). Problem solved :o) Cheers
>
>Yes. But I still think you really found a bug. :)
>
> >> $number = array_pop($output);
>
>Does anyone (php-dev) have any objections to not to
>make array_pop() return FALSE on this error?
>(when the $output is not an array)
>
>Or am I missing something here?

Can you explain the problem?
I missed it somehow :)
Andi

---
Andi Gutmans <andi <email protected>>
http://www.zend.com/

-- 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>