Issue: https://github.com/php/php-src/issues/10142
Author: klusfq
### Description
The following code:
```bash
php -a
# then press <Ctrl + w> after input some commands in one line that delimiter is whitespace
```
Resulted in this output:
**The entire line of command input is erased**
But I expected this output instead:
**Only cut back one word by keyboard <C-w>**
### PHP Version
PHP 8.1.13、PHP 8.2.0
### Operating System
Ubuntu 20.04.5 LTS