PHP: Fixing “pear.php.net is using a unsupported protocol – This should never happen.”

After upgrading to PHP 5.4.30 when I ran the command: pecl upgrade, I got the error message,

pear.php.net is using a unsupported protocol - This should never happen

I had noticed, and ignored, another error message when I ran pear upgrade-all, which was:

pear/pear dependency package "pear/XML_Util" downloaded version 1.2.3 is not the recommended version 1.2.1, but may be compatible, use --force to install
pear/XML_Util cannot be installed, conflicts with installed packages
No valid packages found

After some investigation and a bit of messing around, I discovered that this could all be fixed by running:

pear upgrade --force xml_util

Once I had done this, both pear and pecl updated with no issues.


12 July 2014 — Update: Once again, I encountered the “unsupported protocol” error message when running pecl upgrade. This time, the fix turned out to be simple. Just run:

pear upgrade-all


Happy Slacking!
Stu…

2 thoughts on “PHP: Fixing “pear.php.net is using a unsupported protocol – This should never happen.””

  1. On my system Structures_Graph was causing the same error. I re-created the .channels directory, as suggested by several other websites, but that didn’t fix the issue. The ‘pear upgrade –force Structures_Graph’ command fixed it. Thank you!

Leave a Comment