PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PEAR » PEAR » Bug #6119

Add PEAR_Frontend_Gtk2 support to PEAR

Details

Request #6119Add PEAR_Frontend_Gtk2 support to PEAR
Submitted2005-12-01 07:30 UTC
Fromcweiske at cweiske dot de
Assignedcellog
StatusClosed
PackagePEAR
PHP Version5.1.0
OSany
Roadmaps(Not assigned)

Comments

[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') {