[php-src] PR #13199: Fix phpdbg local console mode when using libedit/readline
| From: | petk | Date: | Fri, 19 Jan 2024 23:24:26 +0000 |
| Subject: | [php-src] PR #13199: Fix phpdbg local console mode when using libedit/readline | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24836@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13199
Author: petk
When using libedit/readline integration in phpdbg, EOF makes editline write prompt again in local
console mode. For example, this can be noticed when reading phpt test files from STDIN and running
phpdbg.
How to reproduce the issue:
```sh
./configure --with-readline --enable-phpdbg-readline
make
./sapi/cli/php run-tests.php sapi/phpdbg
# here tests fail with prompt being repeated in the output
```
After this patch, phpdbg tests pass.