summaryrefslogtreecommitdiff
path: root/devel/phpsh/files/patch-src_phpsh.php
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2011-08-23 17:44:59 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2011-08-23 17:44:59 +0000
commit84b2c8f63744453c468fe55a8e5caefcffcb53e5 (patch)
treece907ca2c30d5708c9b87f1c4ab346b3c3b7ffb9 /devel/phpsh/files/patch-src_phpsh.php
parentTurns out that some geocities sites are more dead than others. (diff)
phpsh is an interactive shell for php that features readline
history, tab completion, quick access to documentation. It was developed at Facebook and ironically, is written mostly in python. It is open source and released under a modified BSD license. WWW: http://phpsh.org/
Diffstat (limited to 'devel/phpsh/files/patch-src_phpsh.php')
-rw-r--r--devel/phpsh/files/patch-src_phpsh.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/devel/phpsh/files/patch-src_phpsh.php b/devel/phpsh/files/patch-src_phpsh.php
new file mode 100644
index 000000000000..14c5dfe93b59
--- /dev/null
+++ b/devel/phpsh/files/patch-src_phpsh.php
@@ -0,0 +1,32 @@
+
+$FreeBSD$
+
+--- src/phpsh.php.orig
++++ src/phpsh.php
+@@ -10,7 +10,7 @@
+ // usage: this is only called from phpsh (the python end), as:
+ // phpsh.php <comm-file> <codebase-mode> [-c]
+ //
+-// use '' for default codebase-mode, define others in /etc/phpsh/rc.php
++// use '' for default codebase-mode, define others in %%PREFIX%%/etc/phpsh/rc.php
+ // -c turns off color
+
+ // set the TFBENV to script
+@@ -46,7 +46,7 @@
+ if (file_exists($___phpsh___homerc)) {
+ require_once $___phpsh___homerc;
+ } else {
+- require_once '/etc/phpsh/rc.php';
++ require_once '%%PREFIX%%/etc/phpsh/rc.php';
+ }
+
+ $___phpsh___do_color = true;
+@@ -547,7 +547,7 @@
+ $err_msg =
+ 'Not executing input: Possible call to undefined function '.
+ $undefd_func."()\n".
+- 'See /etc/phpsh/config.sample to disable UndefinedFunctionCheck.';
++ 'See %%PREFIX%%/etc/phpsh/config.sample to disable UndefinedFunctionCheck.';
+ }
+ }
+ if ($err_msg) {