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

Request #14796 Package produces many E_NOTICE errors
Submitted: 2008-10-15 09:35 UTC
From: jtaal Assigned:
Status: Open Package: PEAR_Frontend_Web (version 0.7.3)
PHP Version: 5.2.6 OS: windows
Roadmaps: (Not assigned)    
Subscription  


 [2008-10-15 09:35 UTC] jtaal (Jaap Taal)
Description: ------------ I'm using PEAR_Frontend_Web on a dev server with all php notices enabled. This package issues a lot of notices. Also when using a slow connection, downloading packages can take more than 30 seconds. I recommend to add two lines to index.php.txt: error_reporting(E_ALL & ~E_NOTICE); set_time_limit(0); Test script: --------------- error_reporting(E_ALL & ~E_NOTICE); set_time_limit(0);

Comments

 [2008-10-26 03:39 UTC] doconnor (Daniel O'Connor)
Hi Jaap, I don't suppose you'd like to paste some of the specific notices here?
 [2008-10-26 04:21 UTC] jtaal (Jaap Taal)
There is actually only one notice, the rest are E_STRICT messages which are enabled on my development server. A lot of the strict messages are from PEAR itselve. Notice: Use of undefined constant PEAR_CONFIG_SYSCONFDIR - assumed 'PEAR_CONFIG_SYSCONFDIR' in D:\wamp\bin\php\php5.2.6\PEAR\pearfrontendweb.php on line 72 This notice may be something I didn't configure the right way, perhaps pearfrontendweb should check whether it has been defined or not... However, since E_STRICT messages are havily present (119 messages) I'd still recommend error_reporting(E_ALL) at least. Since this package can be present on a development server without being something that's under development I'd still recommend a default of E_ALL & ~E_NOTICE in the default index.php.txt file.