Author Topic: Upgrading zend framework  (Read 413 times)

0 Members and 1 Guest are viewing this topic.

Offline dardubTopic starter

  • Irregular
  • Posts: 26
    • View Profile
Upgrading zend framework
« on: May 14, 2010, 12:31:38 PM »
I'm just starting to learn about zend framework. I was wondering about after you build an application in say zf 1.10. And a couple years later they come out with zf 2.0. How easy and what is the process to upgrade?

Do people usually just build an application using one version of a framework and leave it? Is it a mess to use vendor branches in svn? Just from looking at my somewhat outdated book between versions 1.8 to 1.10 there definitely many calls to functions that need to be changed.

Offline Mchl

  • Staff Alumni
  • Freak!
  • *
  • Posts: 8,582
  • Gender: Male
  • That's Largo in my avatar, not me.
    • View Profile
    • FlingBits
Re: Upgrading zend framework
« Reply #1 on: May 14, 2010, 03:43:12 PM »
Plans for ZF2.0 include introduction of namespaces, and as such it will break a lot of backward compatibility. Upgrading to 2.0 will probably mean a total rewrite of an application.

For 1.x series you need to keep track of changelogs and look for backward incompatible changes, and if you decide to upgrade, make sure you upgrade your code where needed.
NetBeans fanatic | ExtJS masochist | C++ denier
PHP4 & MySQL4 are no longer supported.
PHPFreaks Tutorials | PHP Debugging: A Beginner's guide | PHP Security Tutorial || How To Ask Questions The Smart Way
Flingbits tutorials | Class Autoloading

Offline dardubTopic starter

  • Irregular
  • Posts: 26
    • View Profile
Re: Upgrading zend framework
« Reply #2 on: May 14, 2010, 04:29:10 PM »
So from your experience, out in the real world is an existing site not likely to be updated to a newer library until for some reason it becomes absolutely necessary? In which case the application would require being rebuilt if the newer changes are too drastic?

Offline Mchl

  • Staff Alumni
  • Freak!
  • *
  • Posts: 8,582
  • Gender: Male
  • That's Largo in my avatar, not me.
    • View Profile
    • FlingBits
Re: Upgrading zend framework
« Reply #3 on: May 14, 2010, 05:55:30 PM »
Old rule says: If it ain't broken, don't fix it.
Unless there's continous development being done on the site, the libraries it uses are probably not being upgraded.
NetBeans fanatic | ExtJS masochist | C++ denier
PHP4 & MySQL4 are no longer supported.
PHPFreaks Tutorials | PHP Debugging: A Beginner's guide | PHP Security Tutorial || How To Ask Questions The Smart Way
Flingbits tutorials | Class Autoloading