Kohana 3.0.7 is here!
Earlier today, I was informed via Twitter that Kohana 3.0.7 had been released.
“Great,” I thought. “Time to figure out what’s broken.”
See, one of the strengths of Kohana is that the maintainers are totally willing to break backwards compatibility in order to refactor something a better way. However, one of the weaknesses of Kohana is that the maintainers sneak in and break shit when they update.
It’s entirely the same thing, depending on how you look at it. Thankfully, the devs rarely change anything sufficiently large enough to warrant more than a couple hours of bringing things up-to-code, and when I’m done that task, I generally end up with happier, nicer-looking code as a result. So I can’t be too upset.
To boot, there’s usually some sweet ups along the way. New functionality, enhanced functionality, broken stuff fixed, that kind of thing. And while only a point-release, there’s some stuff in here this time that you very well may want to have.
Two Whole New Modules!
- The OAuth module lets you do neat things like integrate with Twitter without writing a lot of cruft code.
- The UnitTest module integrates PHPUnit directly into Kohana! This is so cool! I played around a few times before with trying to do this myself before giving up on it in favour of writing actual domain code. Now that someone more dedicated than myself has actually integrated it, who knows? I might even start writing test cases.
Better XSS Protection!
In all kinds of little places, characters are being escaped where they weren’t before, meaning that the XSS vulnerabilities that are in your project don’t creep in at the framework level.
A Whole Bunch Of little Fixes!
There seems to be generally better code documentation all over the place (example: the database config file), and a lot more flexibility opened up (example: final constructors removed all over the joint, the UTF8 file is now extensible). As well, there’s a bunch of little bugs fixed everywhere, meaning that all those little edge cases I haven’t run up against? I never will.
So What Broke?
Seriously, it just worked. I copied 3.0.7’s system directly over 3.0.6’s. Ditto for the auth and database modules. This is perhaps one of the worst ways you can do an upgrade because so many things can go wrong, but nothing did. I’m seriously impressed.
So there’s a couple of neat new things to play around with, a whole host of sweet little fixes – looks like a very solid update.
Kudos to the Kohana team!