Magento Forum

   
Zend library
 
CBC
Member
 
Total Posts:  48
Joined:  2008-01-15
Spain
 

In Zend library, we have changes as this :

Before
require_once ‘Zend/Exception.php’;
After
#require_once ‘Zend/Exception.php’;

Why?

 
Magento Community Magento Community
Magento Community
Magento Community
 
pluc
Jr. Member
 
Total Posts:  27
Joined:  2008-01-11
 

Only reason I can see is Magento using their own error/exception handlers instead of Zend’s/PHP’s.

 
Magento Community Magento Community
Magento Community
Magento Community
 
CBC
Member
 
Total Posts:  48
Joined:  2008-01-15
Spain
 

Thanks a lot, pluc.
This change is strange for me.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Magento utilizes on-demand autoload of classes, so explicit require_once are degrading performance and not necessary.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top