Re: RE: PHP 4.0 Bug #8106 Updated: array_pop problem when using against an array returned from a class
| From: | Jani Taskinen | Date: | Tue, 05 Dec 2000 23:17:57 +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-40178@lists.php.net to get a copy of this message | ||
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?
--Jani