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

Request #6119 Add PEAR_Frontend_Gtk2 support to PEAR
Submitted: 2005-12-01 07:30 UTC
From: cweiske at cweiske dot de Assigned: cellog
Status: Closed Package: PEAR
PHP Version: 5.1.0 OS: any
Roadmaps: (Not assigned)    
Subscription  


 [2005-12-01 07:30 UTC] cweiske at cweiske dot de
Description: ------------ The pear command allows a "-G" parameter to start the Gtk frontend. With php5, this doesn't work as PHP-Gtk1 isn't supported any more. However, PHP-Gtk2 does work with PHP5.1 and there is the successor of PEAR_Frontend_Gtk named PEAR_Frontend_Gtk2. The following patch checks the php version and changes to Gtk2 if necessary: //pearcmd.php Line 97: + //Check if Gtk and PHP >= 5.1.0 + if ($fetype == 'Gtk' && version_compare('5.1.0dev', phpversion(), '<=')) { + $fetype = 'Gtk2'; + } Line 240: - if ($fetype == 'Gtk') { + if ($fetype == 'Gtk' || $fetype == 'Gtk2') {

Comments

 [2005-12-01 07:47 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-12-01 07:56 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!