Re: Odd recursive function error
| From: | Jason Wong | Date: | Mon, 21 Apr 2003 11:41:36 +0000 |
| Subject: | Re: Odd recursive function error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144627@lists.php.net to get a copy of this message | ||
On Monday 21 April 2003 17:58, Ken Tozier wrote:
> I'm getting the following error in a very shallow recursive function (3
> to 4 levels of recursion is as far as it ever goes)
>
> "Warning : mysql_list_fields() [ function.mysql-list-fields ]: Unable
> to save MySQL query result in ..."
I've no idea what that warning means -- maybe it's trying to tell you it's run
out of memory?
What problem are you trying to solve that requires recursion? Yes, using
recursion is neat and elegant but memory usage can quickly get out of hand.
And usually a recursive solution is slower than a non-recursive one.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Love thy neighbor as thyself, but choose your neighborhood.
-- Louise Beal
*/