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
PEAR roles don't install properly on PHP 7 #5410
Comments
What do these warnings mean? https://travis-ci.org/horde/horde/jobs/100336432#L294 Is everything in your arsenal PHP 7-compatible? |
That's in internal issue with PEAR code. It shouldn't affect this issue though. Also, the PEAR version might be outdated, there's 1.10.1 which is supposed to be fully PHP 7 compatible. That may affect this issue indeed. |
PEAR is at version 1.10.1 for the current PHP 7 archive. https://travis-ci.org/BanzaiMan/travis_production_test/builds/100353756#L101. |
Well, then it's an issue with Travis. It works fine here with a regular PHP 7 install. |
OK, so those are warnings. The first error is here: https://travis-ci.org/horde/horde/jobs/100336432#L2362 Looks like one of your extensions (horde_lz4, maybe?) is failing to compile. I don't think this is a Travis CI issue. |
The failing compilation doesn't have anything to do with the PEAR role not being installed. The error for the missing role is earlier than the build error: https://travis-ci.org/horde/horde/jobs/100336432#L445 |
I guess the issue circles back to the original "warning" in the Do you get these warnings when you run this command on a clean machine? |
I may have found the issue. In Travis' PHP 7 installation, the include_path setting of PHP doesn't point to the installation path of PEAR. See https://travis-ci.org/yunosh/travistest#L244 vs. https://travis-ci.org/yunosh/travistest#L210. This would also explain why the originally referenced build fails finally. |
And indeed for PHP 5.6 for example those paths not only match, but are also completely different from PHP 7: https://travis-ci.org/yunosh/travistest/jobs/100385159#L126 and https://travis-ci.org/yunosh/travistest/jobs/100385159#L157.
|
@yunosh Thanks for the additional information. I'll look into it. |
What else I've found is that the original PEAR packages that come pre-installed, are indeed in /home/travis/.phpenv/versions/7.0.0/share/pear. So the fix is to set the php_dir PEAR configuration to that path too. |
Sorry for the long silence. I think this is a problem with the way we currently install PEAR. It is done via a custom You can see the interaction here: https://travis-ci.org/travis-ci/php-src-builder/jobs/108402919#L269-L312
|
So, we are writing |
https://travis-ci.org/BanzaiMan/travis_production_test/jobs/108440226#L166 OK, so that sort of works. But the |
I've added I've repackaged a few old ones: 7.0.1, 7.0.2, 5.6.17, 5.5.31. And created the new ones: 7.0.3, 5.6.18, and 5.5.32 (these also have aliases 7.0, 5.6, and 5.5, respectively). The Please test them. Thanks. |
Thanks to @BanzaiMan for (hopefully) fixing this in travis-ci/travis-ci#5410.
Seems to work just fine now, thanks! |
Installing PEAR roles works fine in any PHP version but 7 and nightly. The installation seems to succeed https://travis-ci.org/horde/horde/jobs/100336432#L276 but the 'horde_dir' configuration item doesn't show up afterwards: https://travis-ci.org/horde/horde/jobs/100336432#L378
Compare to PHP 5 instead: https://travis-ci.org/horde/horde/jobs/100342634#L283
The text was updated successfully, but these errors were encountered: