From: oliver at x10 dot pe Operating system: Ubuntu Linux 12.10 64bits PHP version: 5.4.11 Package: CGI/CLI related Bug Type: Bug Bug description:cli.prompt weird trailing spaces behavior on interactive shell
Description: ------------ Hello everyone. When I try to change the interactive shell prompt using the command line (via the -d option), the trailing spaces doesn't show unless I begin the prompt with an non-alphanumeric character. It works OK using the shorthand notation (#cli.prompt=test ) inside the shell Test script: --------------- $ php -d cli.prompt="test " -a Interactive shell test# spaces are not shown test^C $ php -d cli.prompt="-test " -a Interactive shell -test # now the prompt is ok -test ^C $ php -d cli.prompt=" test " -a Interactive shell test # also ok test ^C Expected result: ---------------- $ php -d cli.prompt="test " -a Interactive shell test # The trailing spaces should be honored. test ^C Actual result: -------------- $ php -d cli.prompt="test " -a Interactive shell test# not honored test^C -- Edit bug report at https://bugs.php.net/bug.php?id=64078&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64078&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64078&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64078&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64078&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64078&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64078&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64078&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64078&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64078&r=support Expected behavior: https://bugs.php.net/fix.php?id=64078&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64078&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64078&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64078&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64078&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64078&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64078&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64078&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64078&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64078&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64078&r=mysqlcfg
