Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.3.2

Request #17517 Change requires/includes to use absolute paths
Submitted: 2010-06-23 19:54 UTC
From: vipsoft Assigned:
Status: Bogus Package: HTML_QuickForm2 (version SVN)
PHP Version: Irrelevant OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2010-06-23 19:54 UTC] vipsoft (Anthon Pang)
Description: ------------ In third-party hosting environments, users may not be able to install PEAR packages or override the include path. So, instead of: require_once 'HTML/QuickForm2/Exception.php'; switch to: require_once dirname(__FILE__) . '/Exception.php';

Comments

 [2010-06-26 18:16 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Bogus
Sorry; that's completely the opposite direction of PEAR standards and design guidelines. There are alternatives to install on webhosts - http://pear.php.net/manual/en/installation.shared.php for instance. Not the easiest, cleanest way forward granted; but the accepted way.