FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=20203&edit=1

  ID: 20203
  Updated by: cweiske@php.net
  Reported By: timidri@gmail.com
-Summary: Fatal error when trying to install phpqatools or
                     drush
+Summary: Fatal error with charset parameter in XML content
                     type
  Status: Closed
  Type: Bug
  Package: PEAR
  Operating System: RHEL 6.2
  Package Version: 1.9.4
  PHP Version: 5_3 SVN-2014-02-17
  Assigned To: doconnor
-Roadmap Versions:
+Roadmap Versions: 1.9.5
  New Comment:

-Summary: Fatal error when trying to install
                    phpqatools or drush
+Summary: Fatal error with charset parameter
                    in XML content type
-Roadmap Versions:
+Roadmap Versions: 1.9.5



Previous Comments:
------------------------------------------------------------------------

[2014-02-28 15:56:13] cgras

After adding "'text/xml; charset=utf-8' : " in PEAR_REST::retrieveData
method, don't forget to clear the PEAR cache before retry the install
process:

pear clear-cache

Thanks Thomas for this tip, it helps me to achieve phpqatools install on
a Ubuntu 12.04 LTS box

------------------------------------------------------------------------

[2014-02-27 13:57:04] avb

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: doconnor
The proper fix was in PR #9
https://github.com/pear/pear-core/pull/9
https://github.com/Smarre/pear-core/commit/8d569263eac91ad9484b45acb3a6381759138f3c

Already applied to master by Daniel O'Connor.

------------------------------------------------------------------------

[2014-02-19 18:41:17] misilot

Made a PR: https://github.com/pear/pear-core/pull/27

------------------------------------------------------------------------

[2014-02-19 18:37:22] misilot

I added: case 'text/xml; charset=utf-8' :

To the "switch ($headers['content-type']) {" in REST.php and it was able
to download and install phpqatools

------------------------------------------------------------------------

[2014-02-18 10:45:03] baranga

Same for me.

I traced it down to this:
in PEAR_REST::retrieveData the response get checked for content-type of
"text/xml" but github delivers "text/xml; charset=utf-8" so the check
fails and pear believes the response isn't xml.

# pear version
PEAR Version: 1.9.4
PHP Version: 5.3.10-1ubuntu3.9
Zend Engine Version: 2.3.0

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
     http://pear.php.net/bugs/bug.php?id=20203

Search Discussions

  • Cweiske at May 29, 2014 at 7:51 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=20203&edit=1

      ID: 20203
      Updated by: cweiske@php.net
      Reported By: timidri@gmail.com
      Summary: Fatal error with charset parameter in XML content
                         type
      Status: Closed
      Type: Bug
      Package: PEAR
      Operating System: RHEL 6.2
      Package Version: 1.9.4
      PHP Version: 5_3 SVN-2014-02-17
      Assigned To: doconnor
      Roadmap Versions:
      New Comment:

    Also https://github.com/pear/pear-core/pull/9


    Previous Comments:
    ------------------------------------------------------------------------

    [2014-05-29 20:33:00] cweiske

    -Summary: Fatal error when trying to install
                        phpqatools or drush
    +Summary: Fatal error with charset parameter
                        in XML content type
    -Roadmap Versions:
    +Roadmap Versions: 1.9.5


    ------------------------------------------------------------------------

    [2014-02-28 15:56:13] cgras

    After adding "'text/xml; charset=utf-8' : " in PEAR_REST::retrieveData
    method, don't forget to clear the PEAR cache before retry the install
    process:

    pear clear-cache

    Thanks Thomas for this tip, it helps me to achieve phpqatools install on
    a Ubuntu 12.04 LTS box

    ------------------------------------------------------------------------

    [2014-02-27 13:57:04] avb

    -Status: Open
    +Status: Closed
    -Assigned To:
    +Assigned To: doconnor
    The proper fix was in PR #9
    https://github.com/pear/pear-core/pull/9
    https://github.com/Smarre/pear-core/commit/8d569263eac91ad9484b45acb3a6381759138f3c

    Already applied to master by Daniel O'Connor.

    ------------------------------------------------------------------------

    [2014-02-19 18:41:17] misilot

    Made a PR: https://github.com/pear/pear-core/pull/27

    ------------------------------------------------------------------------

    [2014-02-19 18:37:22] misilot

    I added: case 'text/xml; charset=utf-8' :

    To the "switch ($headers['content-type']) {" in REST.php and it was able
    to download and install phpqatools

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
         http://pear.php.net/bugs/bug.php?id=20203

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 29, '14 at 6:19p
activeMay 29, '14 at 7:51p
posts2
users1
websitepear.php.net

1 user in discussion

Cweiske: 2 posts

People

Translate

site design / logo © 2022 Grokbase