Edit report at https://bugs.php.net/bug.php?id=60683&edit=1

 ID:                 60683
 Updated by:         johan...@php.net
 Reported by:        da...@php.net
 Summary:            Interactive Mode doesn't reach prompt
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            CGI/CLI related
 Operating System:   OSX 10.7.2 & Ubuntu 11.04
 PHP Version:        5.4.0RC5
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The classic interactive mode is different from the shell mode, just re-using 
the flag.


Previous Comments:
------------------------------------------------------------------------
[2012-01-17 18:30:46] da...@php.net

Can we make the output here 
(http://lxr.php.net/opengrok/xref/PHP_5_4/sapi/cli/php_cli.c#906) be a little 
more descriptive?

i.e.:

printf("Interactive mode enabled\n");
printf("No readline/libedit support, use ^D to execute and quit.\n\n");

------------------------------------------------------------------------
[2012-01-16 19:18:01] rk at srsbiz dot pl

@dragoonis 

readline is only required to make this mode truly interactive (with command 
history, function completion etc), but it also works without it. You can 
type/paste your code and it will be executed as soon as EOF (^D) is reached, so 
it's rather documentation problem.

------------------------------------------------------------------------
[2012-01-15 01:58:33] dragoo...@php.net

@rk,

If there's support required for another library then it shouldn't let you enter 
interactive mode, and back out, giving you a useful error message to tell you 
there are missing dependencies..

------------------------------------------------------------------------
[2012-01-13 21:45:44] rk at srsbiz dot pl

IMHO it's not a bug, to have interactive shell you have to configure with 
readline support, not just clean './configure'

------------------------------------------------------------------------
[2012-01-08 05:37:10] dragoo...@php.net

I confirmed this case with davey on Mac OSX Lion

Darwin Paul-Dragooniss-MacBook-Pro.local 11.2.0 Darwin Kernel Version 11.2.0: 
Tue 
Aug  9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
05:10
macosx lion..


My build details are:
--
bash-3.2$ ../build/bin/php -v
PHP 5.4.0RC6-dev (cli) (built: Jan  8 2012 03:03:04) (DEBUG)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

Thanks.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=60683


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60683&edit=1

Reply via email to