summaryrefslogtreecommitdiffstats
path: root/php-composer-ca-bundle-rpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-composer-ca-bundle-rpm.patch')
-rw-r--r--php-composer-ca-bundle-rpm.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/php-composer-ca-bundle-rpm.patch b/php-composer-ca-bundle-rpm.patch
index 54f656d..7ae8760 100644
--- a/php-composer-ca-bundle-rpm.patch
+++ b/php-composer-ca-bundle-rpm.patch
@@ -10,3 +10,15 @@ diff -up src/CaBundle.php.rpm src/CaBundle.php
// cURL does not understand 'phar://' paths
// see https://github.com/composer/ca-bundle/issues/10
+diff -up tests/CaBundleTest.php.rpm tests/CaBundleTest.php
+--- tests/CaBundleTest.php.rpm 2019-08-01 11:14:21.577672699 +0200
++++ tests/CaBundleTest.php 2019-08-01 11:14:31.322744408 +0200
+@@ -104,7 +104,7 @@ class CaBundleTest extends TestCase
+ public function testOpenBaseDir()
+ {
+ $oldValue = ini_get('open_basedir');
+- ini_set('open_basedir', realpath(__DIR__ . '/../'));
++ ini_set('open_basedir', '/usr/share/php:' . realpath(__DIR__ . '/../'));
+ $certFilePath = CaBundle::getSystemCaRootBundlePath();
+ $validResult = CaBundle::validateCaFile($certFilePath, null);
+ $this->assertTrue($validResult);