Invalid tgz file : Cpanel PEAR Installer problem

The problem is caused by differences in the way PHP 5.2.x parses code, and can be fixed by manually patching the listContent function in PEAR’s Archive_Tar package.

The fix is to track down the /usr/local/lib/php/Archive/Tar.php and/or /usr/lib/php/Archive/Tar.php files and change the following removing the line marked ‘-‘ and adding the lines marked ‘+’…

Code:
    function listContent()
    {
        $v_list_detail = array();

        if ($this->_openRead()) {
+            $r = $this->_extractList('', $v_list_detail, "list", '', '');
+            if (!$r) {
-           if (!$this->_extractList('', $v_list_detail, "list", '', '')) {
                unset($v_list_detail);
                $v_list_detail = 0;
            }
            $this->_close();
        }

        return $v_list_detail;
    }

About these ads
About

anees

Posted in Cpanel, Issues, Third party softwares
One comment on “Invalid tgz file : Cpanel PEAR Installer problem
  1. Ben WAnn says:

    Thanks for this, great information!
    Helped me out in a Jam.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog Stats
  • 119,681 hits
Follow

Get every new post delivered to your Inbox.

Join 209 other followers

%d bloggers like this: