diff options
Diffstat (limited to 'phpcov-rpm.patch')
-rw-r--r-- | phpcov-rpm.patch | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/phpcov-rpm.patch b/phpcov-rpm.patch index 062caeb..a181e10 100644 --- a/phpcov-rpm.patch +++ b/phpcov-rpm.patch @@ -1,7 +1,7 @@ ---- phpcov.rpm 2014-04-30 15:53:58.000000000 +0200 -+++ phpcov 2014-04-30 15:55:08.000000000 +0200 -@@ -42,23 +42,7 @@ - * @since File available since Release 1.0.0 +--- phpcov.rpm 2015-10-05 14:23:45.648930666 +0200 ++++ phpcov 2015-10-05 14:23:51.362957863 +0200 +@@ -9,23 +9,16 @@ + * file that was distributed with this source code. */ -$loaded = false; @@ -12,8 +12,15 @@ - $loaded = true; - break; - } --} -- ++// Ensure correct include_path for RHSCL ++$inc = get_include_path(); ++$dirs = explode(':', $inc); ++if (!in_array('/usr/share/php', $dirs)) { ++ $dirs[] = '/usr/share/php'; ++ set_include_path(implode(':', $dirs)); + } ++unset ($inc, $dirs); + -if (!$loaded) { - die( - 'You need to set up the project dependencies using the following commands:' . PHP_EOL . |