News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matthew Weier O'Phinney's Blog:
Migrating OOP Libraries and Frameworks to PHP 5.3
July 02, 2008 @ 10:24:02

Matthew Weier O'Phinney recently posted about a method he's come up with for migrating your object-oriented libraries (including frameworks) over to the upcoming PHP 5.3 version of the language.

With PHP 5.3 coming up on the horizon, I'm of course looking forward to using namespaces.

He gives an example of how useful these namespaces can be for you and your code, but points out one failing point - trying to define classes in a namespace that are named the same as a built-in keyword for PHP. There's already been a suggestion to add a captial "I" in front of the class name to prevent this collision.

There's also the problem of throwing custom exceptions - unless you use the namespace properly your script will just throw a default exception.

0 comments voice your opinion now!
php5 namespace migrate library framework collision keyword exception


blog comments powered by Disqus

Similar Posts

DevShed: Processing File Data with Template Classes in PHP 5

Sean Coates' Blog: Actually Solving a Problem (believe it or not)

Derick Rethans' Blog: Friday afternoon toying: eZ Components as phar

The Bakery: Six New Components/Articles/Tutorials (SOAP, XHR, Tickets, Models, Releases & Flashes)

SaniSoft Blog: unbindModel() and paginate() gotcha in CakePHP 1.2


Community Events











Don't see your event here?
Let us know!


hack hhvm overview release code symfony2 introduction application unittest install facebook podcast component composer language framework opinion package security series

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework