Re: PHP OO Problem
| From: | Andre Matos | Date: | Thu, 15 Apr 2004 14:33:54 +0000 |
| Subject: | Re: PHP OO Problem | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33905@lists.php.net to get a copy of this message | ||
Thanks Justin,
I found the problem. I am using the OOP with sessions. The idea is use um
object and put it into the session and change it when is necessary. However,
instead of change the information in the object and then change the object
that is in the session, it is adding more information in the object. As a
result, my "session" has the size increased from 1 to 5, from 5 to 15, from
15 to 40, etc...
Is there any way to destroy the object in PHP?
Thanks.
"Justin Patrin" <papercrane@reversefold.com> escreveu na mensagem
news:20040414204047.17676.qmail@pb1.pair.com...
> Andre Matos wrote:
> > Hi List,
> >
> >
> >
> > Two months ago I developed a project using PHP and MySQL without
problem.
> > Now, I am developing using PHP and MySQL, but using PHP Object Oriented.
> >
> >
> >
> > My problem is that the access is become slowly after few accesses or if
I
> > perform a reload some times. The unique way to revert is to restart the
> > Apache.
> >
> >
> >
> > Is anyone had this problem? Is this problem related to PHP OO or may
> > something that I used in my programs?
> >
> >
> >
> > Thanks.
> >
> >
> >
> > Andre
> >
> > andre.matos@sympatico.ca
>
> Pretty much all of the larger PHP systems around are OO. PEAR is OO. If
> OO was the problem, it would have been fixed far before now. Likely
> you're using more resources inadvertently or not closing resources. Try
> checking specific functions to see if they're slowing you down. If you
> need more help, post some code and it will get looked at.
>
> --
> paperCrane <Justin Patrin>