Namespace support in 5.3 also in Qcodo?

thread: 5 messages  |  last: a year ago  |  started: sunday, july 27, 2008, 4:37 am pdt


#1  |  dwlnetnl (Utrecht, Netherlands) Netherlands (Holland, Europe)
Sunday, July 27, 2008, 4:37 AM PDT

Are there plans to modify Qcodo to support the namespace support in PHP 5.3?

#2  |  VexedPanda (Calgary, AB) Canada
Monday, July 28, 2008, 11:22 AM PDT

Reading through it, it seems like supporting it would require dropping support for anything prior to PHP 5.3. (There does not appear to be a way to add namespace support without causing errors in all earlier versions of PHP.)

I think QCodo would like to continue allowing installs on 5.0+.

#3  |  bpppete (Ottawa, ON) Canada
Wednesday, March 31, 2010, 12:54 PM PDT

It's now almost 2 years later. At my work, we currently support namespaces in all of our code.

Any plans to support namespaces now?

Peter

#4  |  VexedPanda (Calgary, AB) Canada
Wednesday, March 31, 2010, 3:22 PM PDT

No, I don't believe there will be an intention to drop support for PHP5.1 and 5.2 for a long time yet.

#5  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Thursday, April 1, 2010, 12:31 PM PDT

While 5.1 is definitely a bit out of date (although there definitely are still apps using 5.1), 5.2 is very much still used in production by very many applications, and I believe actually still has a significantly higher install base than 5.3

And as VP mentioned, since there doesn't appear to be any “backward compatible” way of introducing namespaces without breaking compatibility, using namespaces for Qcodo-based classes will likely have to wait.

(Although, if there are any thoughts / suggestions on how to approach this without breaking BC, I'd be more than happy to hear them.)

Now on the other hand, if you want to support namespaces for your code-generated classes (ORM) for your own application, that could likely be implemented relatively easily by simply updating the codegen templates.  Just a thought.



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.