I know this isn't technically you, but we should use a better test for libedit here, since it'll actually execute with both libedit and readline implementations. This should do?

```php
if (readline_info('library_version') === 'Editline wrapper') // ...
```