Skip to content
Browse files

Fixed up console issues with reset. Removed xdebug stuff from console…

… wrappers and htaccess and user.ini (too unique and not by default with PHP so irrelevant really)
  • Loading branch information...
1 parent 7394755 commit 7b325ff381ca297e08fd7ec864bc41b5a9b2fc3d @mattsah mattsah committed Dec 23, 2011
Showing with 5 additions and 9 deletions.
  1. +2 −4 .console
  2. +0 −1 .htaccess
  3. +0 −1 .user.ini
  4. +2 −2 iw.console
  5. +1 −1 iw.console.bat
View
6 .console
@@ -58,7 +58,7 @@
$___code = '\?';
$___command = '';
- if (isset($argv[1])) {
+ if (isset($argv[1]) && $argv[1]) {
$___called_quit = TRUE;
try {
include $argv[1];
@@ -238,10 +238,8 @@
'-d magic_quotes_gpc=0',
'-d short_open_tag=0',
'-d asp_tags=1',
- '-d xdebug.profiler_enabler=0',
'-d display_errors=1',
- __FILE__,
- $_SERVER['DOCUMENT_ROOT']
+ __FILE__
)));
}
}
View
1 .htaccess
@@ -13,7 +13,6 @@
php_flag magic_quotes_gpc 0
php_flag short_open_tag 0
php_flag asp_tags 1
- php_flag xdebug.profiler_enable 0
php_value upload_max_filesize "15M"
php_value post_max_size "16M"
View
1 .user.ini
@@ -7,7 +7,6 @@ display_errors = On
magic_quotes_gpc = Off
short_open_tag = Off
asp_tags = On
-xdebug.profiler_enable = Off
upload_max_filesize = 15M
post_max_size = 16M
View
4 iw.console
@@ -5,9 +5,9 @@ BASEDIR=$(dirname $0)
if [ -n "`php -v 2> /dev/null`" ]; then
if [ -n "`rlwrap -v 2> /dev/null`" ]; then
HIST_FILE="$BASEDIR/.console.hist"
- rlwrap -H $HIST_FILE php -q -d register_globals=0 -d magic_quotes_gpc=0 -d short_open_tag=0 -d asp_tags=1 -d xdebug.profiler_enabler=0 -d display_errors=1 $BASEDIR/.console $1
+ rlwrap -H $HIST_FILE php -q -d register_globals=0 -d magic_quotes_gpc=0 -d short_open_tag=0 -d asp_tags=1 -d display_errors=1 $BASEDIR/.console $1
else
- php -q -d register_globals=0 -d magic_quotes_gpc=0 -d short_open_tag=0 -d asp_tags=1 -d xdebug.profiler_enabler=0 -d display_errors=1 $BASEDIR/.console $1
+ php -q -d register_globals=0 -d magic_quotes_gpc=0 -d short_open_tag=0 -d asp_tags=1 -d display_errors=1 $BASEDIR/.console $1
fi
else
echo 'Please add the php binary to your path and restart.'
View
2 iw.console.bat
@@ -1,2 +1,2 @@
@echo off
-php -q -d register_globals=0 -d magic_quotes_gpc=0 -d short_open_tag=0 -d asp_tags=1 -d xdebug.profiler_enabler=0 -d display_errors=1 .console %1
+php -q -d register_globals=0 -d magic_quotes_gpc=0 -d short_open_tag=0 -d asp_tags=1 -d display_errors=1 .console %1

0 comments on commit 7b325ff

Please sign in to comment.
Something went wrong with that request. Please try again.