Re: RE: PHP 4.0 Bug #8106 Updated: array_pop problem when using against an array returned from a class
| From: | Andi Gutmans | Date: | Wed, 06 Dec 2000 20:06:17 +0000 |
| Subject: | Re: RE: PHP 4.0 Bug #8106 Updated: array_pop problem when using against an array returned from a class | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-40245@lists.php.net to get a copy of this message | ||
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. :)Can you explain the problem? I missed it somehow :) Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/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?$number = array_pop($output);