Why am I unable to use 'readline_on_new_line()' on my windows machine?

From: Date: Thu, 29 Apr 2021 15:50:34 +0000
Subject: Why am I unable to use 'readline_on_new_line()' on my windows machine?
Groups: php.internals 
Request: Send a blank email to internals+get-114253@lists.php.net to get a copy of this message
Hello Internals, I am unable to call readline_on_new_line() function. I am posting this to internals to confirm whether it is a bug or an issue with docs. The manual suggests that this function is available on php 8. https://php.net/manual/en/function.readline-on-new-line.php However, when I invoke this in my script, it informs of calling an unknown function. Other readline functions, such as readline(), readline_read_history(), readline_write_history(), do work. I wrote to shell var_dump(function_exists('readline_on_new_line'));. It responded with bool(false). I wrote, var_dump(extension_loaded('readline')). It said, bool(true). Note: my PHP version (PHP_VERSION) is 8.0.5. Any type of help will be appreciated. Kind regards Hamza Ahmad

« previous php.internals (#114253) next »