> > > This is no longer the case as of 5.0.3 is_subclass_of() will accept a
> > > string argument in place of the object to make class comparisons. It
> >
> > I know. I cannot use 5.0.3 or later for a client project, they have a
> server
> > running 5.0.1. And, after all, it's a PHP5 MVC framework, not a PHP5.0.3
> > one.
> 
> That's ridiculous, http://www.php.net/ChangeLog-5.php#5.0.3, we're
> talking about bug fixes and it was released over six months ago so why
> cant they be upgraded? *shrug* I dont think it's unreasonable to
> expect you to be using the latest stable release of 5.0.x so just to
> clarify things, I dont think 'PHP5' was ever meant to mean 5.0.0,
> rather 5.x, same as 'PHP4' apps dont imply 4.0.0. I would hold the x
> to the latest 'stable' release though, which at this time is 5.0.4.

I know, please don't tell me ;) It's a managed server at a large provider,
and they only change all machines at once... no way to change it. It sucks,
but I'm also sure I'm not the only one with this problem... Doesn't matter
tho, since I already wrote code that will work with versions 5.0.0, 5.0.1
and 5.0.2. It usually is only one call to get_parent_class() anyway, since
the code bails out as soon as he finds the parent class to be
"SingletonModel" or "Model".

Generally, tho, I really think it should be compatible to any PHP5 version.


> > > does not, however, work for interfaces. :(
> >
> > And if interfaces were used, every model that derives Model and
> implements
> > Singleton would have to implement getInstance() on its own, which is not
> the
> > ideal solution IMO ;)
> 
> Nah, it doesnt have to be one or the other, it can be both. Any class
> implementing the singleton interface would need to implement the
> methods it specified in order to be called a singleton. There's
> nothing wrong with implementing the interface in an abstract object
> and extending that, if there's value in doing that.
> 
> It's moot right now since we arent developing with interfaces at this
> time.

Yeah, not sure if it's worth it. Yet another class to load, lookup etc. If
we decide to do so, Controller or Context would have to implement it, too,
since they're singletons as well.

- David


_______________________________________________
agavi-dev mailing list
[email protected]
http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev

Reply via email to