0

Since upgrading to php 5.4, issuing echo commands no longer includes automatic line breaks. In order to get similar behavior, you must now append your own; otherwise, you get the prompt on the same line as your output.

php > echo "some output";
some outputphp >

some outputphp > echo "some output", "\n";
some output
php >

Is there a configuration option to turn them on?

Mike
  • 23,542
  • 14
  • 76
  • 87
Bryan Agee
  • 4,924
  • 3
  • 26
  • 42
  • are you trying with `php -a` mode? – luchosrock Dec 14 '12 at 18:47
  • I am using -a (interactive mode). I often use it to test assumptions before coding them into unit tests. – Bryan Agee Dec 14 '12 at 18:49
  • @BryanAgee Try loading the old `php.ini` by specifying `--php-ini=/path/to/old/file` and see if that makes any difference. At least then you can confirm whether or not it's something built into PHP or something configurable in the `php.ini` – Mike Dec 14 '12 at 19:52

0 Answers0