|
Posted by Alex on 11/15/07 07:40
"Steve" <no.one@example.com> wrote in message
news:mKH_i.34$dm.33@newsfe02.lga...
> a difference, yes. something that will make your code quit bombing and
> still get the Factory functionality...probably not. all an interface
> (IFactory in this case) is, is a contract...a definition of what *all
> usable* objects that *implement* that interface will provide a caller,
> i.e. your php code. make sense? IFactory will provide you no other
> functionality than that. here's an example in vb.
OK it's like a class from which another inherits, then ?
(snip the example)
> anyway...i think i got off track, but does that help you know that you're
> going to have to get at an actual Factory object in the list...which
> doesn't solve your memory problem?
Yes, that's very helpful. But it raises a question in PHP. Can I assume that
COM tells PHP what type the objects in a class (or Interface) are ? I don't
have to explicitely instanciate or cast the objects that are childs of a COM
object ?
Now, I tried different values for memory_limit in php.ini and it doesnt
change anything. I had a closer look at the memory usage, and Apache also
takes almost 50M on a working page. So I'm not really sure it's a memory
problem.
Actually, the COM syntax is not really complicated. So I'm beginning to
think of a bug (in the object or PHP).
I'm considering trying a newer version of PHP. But I fear the impacts.
Thank you very much again, things are getting clearer :)
--
Alex
[JDR] Visitez Extremia, un monde gratuit et en francais pour D&D et
autres jeux de role.
www.extremia.org
Navigation:
[Reply to this message]
|