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

Bug #1008 PEAR throws a warning in safe_mode
Submitted: 2004-03-13 12:25 UTC
From: matthias Assigned: cellog
Status: Closed Package: PEAR
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 44 - 36 = ?

 
 [2004-03-13 12:25 UTC] matthias
Description: ------------ If you want to install a package you get a warning because pear tries to set a new time limit.

Comments

 [2004-03-13 12:32 UTC] mj
The following patch should fix that: Index: scripts/pearcmd.php =================================================================== RCS file: /repository/php-src/pear/scripts/pearcmd.php,v retrieving revision 1.9 diff -u -r1.9 pearcmd.php --- scripts/pearcmd.php 26 Jan 2004 01:59:14 -0000 1.9 +++ scripts/pearcmd.php 13 Mar 2004 12:38:44 -0000 @@ -28,7 +28,9 @@ ini_set('include_path', '@include_path@'); } ini_set('allow_url_fopen', true); -set_time_limit(0); +if (!ini_get('safe_mode')) { + set_time_limit(0); +} ob_implicit_flush(true); ini_set('track_errors', true); ini_set('html_errors', false);
 [2004-03-13 17:29 UTC] cellog
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.