Português Português English English

Zend Framework vs PEAR, class loading war

I want to show you (PHP developer) that you must to be care about class loading when using Zend Framework with PEAR. Why don’t I suggest you to use Zend Framework with PEAR in PHP applications?

Zend Framework: Zend_Loader is the system classes loader, when it doesn’t find the class, an exception is throw.

PEAR: This library have some packages that tries load some classes (SOAP for example), but if these classes don’t exists, no problem, the application must be running yet.

We saw we have a ideology problem to solve. Sometimes class loader have to throw an exception, sometimes else not. I haven’t found a easy solution for that. I’ve had to do a cut corner for PEAR classes in my class loader.

That’s all folks. Good luck!

Posted in Development, PHP | No comments
BrasilMato GrossoRondôniaDistrito Federal