phpSH - feature request's

168 views
Skip to first unread message

Shamun

unread,
Jul 14, 2010, 12:16:42 PM7/14/10
to phpsh
Greetings:
===========
I am using the latest phpsh. (didn't even knew you guys released
1.3?)
[sun@example /]$ phpsh
Starting php
type 'h' or 'help' to see instructions & features

Feature request:
=================
1. When i am in cli, there is not a single command or file exist? to
check which version of phpSH i am using?

2. Change the way multi line works?

Before and Now:
php> $v =1; \
... echo $v;
Multiline input has no syntactic completion:
PHP Parse error: syntax error, unexpected T_ECHO, expecting T_STRING
in Command line code on line 2

php>

3. Multiple line entry + while () { } doesn't works?

php> \
... $val = 1;
Multiline input has no syntactic completion:
PHP Parse error: syntax error, unexpected T_VARIABLE, expecting
T_STRING in Command line code on line 2

php>





Shamun

unread,
Jul 14, 2010, 12:23:43 PM7/14/10
to phpsh
Feature request:

1. Multi line handle is not that easy sir. it was very nice if you
also added a MySQL delimiter way of multiline handling.
php> $a=1; if($a=='1') {
... echo $a;
... } else {
... echo 'useless';
... }
1
php> $a=1; while($a>10) {
... echo $a++;
... }

2. Screen buffer/ clear or empty how?

php> clear
PHP Notice: Use of undefined constant clear - assumed 'clear' in /usr/
lib/python2.6/site-packages/phpsh/phpsh.php(534) : eval()'d code on
line 1
PHP Stack trace:
PHP 1. {main}() /usr/lib/python2.6/site-packages/phpsh/phpsh.php:0

PHP 2. ___Phpsh___->interactive_loop() /usr/lib/python2.6/site-
packages/phpsh/phpsh.php:572
PHP 3. eval() /usr/lib/python2.6/site-packages/phpsh/phpsh.php:534
php> cls
PHP Notice: Use of undefined constant cls - assumed 'cls' in /usr/lib/
python2.6/site-packages/phpsh/phpsh.php(534) : eval()'d code on line 1
PHP Stack trace:
PHP 1. {main}() /usr/lib/python2.6/site-packages/phpsh/phpsh.php:0
PHP 2. ___Phpsh___->interactive_loop() /usr/lib/python2.6/site-
packages/phpsh/phpsh.php:572

PHP 3. eval() /usr/lib/python2.6/site-packages/phpsh/phpsh.php:534
php> clear screen
Multiline input has no syntactic completion:
PHP Parse error: syntax error, unexpected T_STRING in Command line
code on line 1

php> cls
PHP Notice: Use of undefined constant cls - assumed 'cls' in /usr/lib/
python2.6/site-packages/phpsh/phpsh.php(534) : eval()'d code on line 1
PHP Stack trace:
PHP 1. {main}() /usr/lib/python2.6/site-packages/phpsh/phpsh.php:0

PHP 2. ___Phpsh___->interactive_loop() /usr/lib/python2.6/site-
packages/phpsh/phpsh.php:572
PHP 3. eval() /usr/lib/python2.6/site-packages/phpsh/phpsh.php:534
php>

Shamun

unread,
Jul 14, 2010, 12:33:03 PM7/14/10
to phpsh
Feature request: for nowdocs/heredocs, still i cant use multiline
methods that is implemented by phpSH. You can see following senario
before and suggested request:

Now & Before:
===============
php> $a =<<< EOF
Multiline input has no syntactic completion:
PHP Parse error: syntax error, unexpected T_SL in Command line code
on line 1

php>

Was best if we could lock our start and end like delimiter (mysql):
=============================================
Senario 1:
php>multline start;
.... $a =<<< EOF
.... hello hi how are you this is phpSH
.... hello there its test line
.... EOF;
.... multiline end;
php> (here some outputs.. after lock end;)
Reply all
Reply to author
Forward
0 new messages