Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Illegal string offset 'c' in PEAR/REST/11.php on line 55 #135

Closed
sinkcup opened this issue Mar 31, 2014 · 8 comments
Closed

Warning: Illegal string offset 'c' in PEAR/REST/11.php on line 55 #135

sinkcup opened this issue Mar 31, 2014 · 8 comments

Comments

@sinkcup
Copy link

sinkcup commented Mar 31, 2014

pear channel-discover nikic.github.com/pear

pear install nikic/PHPParser

No releases for package "nikic/PHPParser" exist
install failed

OR

pear remote-list -c nikic

Warning: Illegal string offset 'c' in PEAR/REST/11.php on line 55

@theseer
Copy link
Owner

theseer commented Mar 31, 2014

This is not an issue of phpDox but with your pear environment.

Please verify you have a somewhat recent version of pear installed and if the problem persists feel free to contact @nikic as you seem to have issues with his repository.

In case you want to "just" use phpDox, it is recommended to use the provided phar package (available for direct download form at http://phpdox.de/releases/phpDox.phar ).

@theseer theseer closed this as completed Mar 31, 2014
@theseer
Copy link
Owner

theseer commented Mar 31, 2014

@nikic: I can reproduce this with my local pear installation

theseer@nyda ~ $ pear version
PEAR Version: 1.9.4
PHP Version: 5.5.10
Zend Engine Version: 2.5.0
Running on: Linux nyda 3.13.6-200.fc20.x86_64 #1 SMP Fri Mar 7 17:02:28 UTC 2014 x86_64

@sinkcup
Copy link
Author

sinkcup commented Apr 1, 2014

Can you run "pear remote-list -c nikic" ?
I have tried again on another machine with clean installed php:

sudo apt-get install php-cli php-pear
pear version

PEAR Version: 1.9.4
PHP Version: 5.5.3-1ubuntu2.2
Zend Engine Version: 2.5.0
Running on: Linux dev-HP-Pro-3335-MT 3.11.0-17-generic #31-Ubuntu SMP Mon Feb 3 21:52:43 UTC 2014 x86_64

sudo pear channel-discover nikic.github.com/pear

Adding Channel "nikic.github.com/pear" succeeded
Discovery of channel "nikic.github.com/pear" succeeded

sudo pear remote-list -c nikic

Warning: Illegal string offset 'c' in PEAR/REST/11.php on line 54
(no packages available yet)

some pear channels on github is down, but pear.php.net is ok, why?

sudo pear remote-list -c pear.php.net

XML_Feed_Parser 1.0.5
XML_Query2XML 1.7.2
XML_XPath2 -n/a-
XML_XRD -n/a-
XML_Util2 -n/a-

@nikic
Copy link

nikic commented Apr 1, 2014

I don't have a PEAR install at hand here, I can only check this when I'm back home in a week. I'm using Pirum to publish packages, so either it's generating some wrong data or I'm not using it correctly (or maybe forgot to commit some files?)

@speedy32
Copy link

Nothing has changed. Will that be work? Because without that I can't use phpDox.

@theseer
Copy link
Owner

theseer commented Aug 11, 2014

Pear is a dying technology. You might want to consider to use the all-in-one self contained phar archive (see http://phpdox.de/getting-started.html for details).

I can't do anything for remote repositories.

@nikic
Copy link

nikic commented Aug 12, 2014

Sorry for not replying here as well. This was a PEAR bug that was fixed some time ago, so updating to a new PEAR version should fix it. See nikic/pear#1.

@theseer
Copy link
Owner

theseer commented Aug 12, 2014

Thank you for the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants