summarylogtreecommitdiffstats
path: root/lift-open_basedir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'lift-open_basedir.patch')
-rw-r--r--lift-open_basedir.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/lift-open_basedir.patch b/lift-open_basedir.patch
new file mode 100644
index 000000000000..92cd2424fa08
--- /dev/null
+++ b/lift-open_basedir.patch
@@ -0,0 +1,12 @@
+diff -aur --no-dereference package.pristine/phpdoc package.new/phpdoc
+--- package.pristine/phpdoc 2016-11-29 00:37:36.309025526 +0100
++++ package.new/phpdoc 2016-11-29 00:41:18.460676550 +0100
+@@ -2,7 +2,7 @@
+ if [ -z "$PHP" ]; then
+ PHP=`which php`
+ fi
+-(exec $PHP -C -q -d output_buffering=1 "$0" "$@") 2>/dev/null
++(exec $PHP -C -q -d output_buffering=1 -d open_basedir= "$0" "$@") 2>/dev/null
+ if [ "$?" -ne "0" ]; then
+ echo "FAILED: Bad environment variable \$PHP (set to \"$PHP\")"
+ exit 1