From 53208f9bd0a035a4e1409ba700106540474c9ef1 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Mon, 26 Jan 2026 15:26:32 +0000 Subject: [PATCH] readline: fix XML by converting para to simpara tags via script --- reference/readline/book.xml | 21 ++++++++----------- reference/readline/configure.xml | 12 +++++------ .../functions/readline-add-history.xml | 12 +++++------ .../readline-callback-handler-install.xml | 20 +++++++++--------- .../readline-callback-handler-remove.xml | 12 +++++------ .../functions/readline-callback-read-char.xml | 12 +++++------ .../functions/readline-clear-history.xml | 12 +++++------ .../readline-completion-function.xml | 12 +++++------ .../readline/functions/readline-info.xml | 20 +++++++++--------- .../functions/readline-list-history.xml | 13 ++++++------ .../functions/readline-on-new-line.xml | 17 +++++++-------- .../functions/readline-read-history.xml | 12 +++++------ .../readline/functions/readline-redisplay.xml | 13 ++++++------ .../functions/readline-write-history.xml | 12 +++++------ reference/readline/functions/readline.xml | 12 +++++------ reference/readline/ini.xml | 8 +++---- reference/readline/setup.xml | 13 +++++------- 17 files changed, 111 insertions(+), 122 deletions(-) diff --git a/reference/readline/book.xml b/reference/readline/book.xml index 5e2822d96e..2eb6b58dbc 100644 --- a/reference/readline/book.xml +++ b/reference/readline/book.xml @@ -1,15 +1,14 @@ - - + GNU Readline Readline - + &reftitle.intro; - + The readline functions implement an interface to the GNU Readline library. These are functions that provide editable command lines. An example being the way Bash allows you @@ -18,25 +17,24 @@ library, it will be of little use for writing Web applications, but may be useful when writing scripts used from a command line. - - + + As of PHP 7.1.0 this extension is supported on Windows. - + - + The readline extension is not thread-safe! Thus, the usage of it with any true thread safe SAPI (like Apache mod_winnt) is strongly discouraged. - + - + &reference.readline.setup; &reference.readline.constants; &reference.readline.reference; - - diff --git a/reference/readline/configure.xml b/reference/readline/configure.xml index 99ae53e3c2..0583569483 100644 --- a/reference/readline/configure.xml +++ b/reference/readline/configure.xml @@ -1,19 +1,18 @@ -
+
&reftitle.install; - + To use these functions you must compile the CGI or CLI version of PHP with readline support. You need to configure PHP . If you want to use the libedit readline replacement, configure PHP . - - + + On Windows this extension is available by default as of PHP 7.1.0. - +
- - diff --git a/reference/readline/functions/readline-add-history.xml b/reference/readline/functions/readline-add-history.xml index a9690cfd07..f1fea0b649 100644 --- a/reference/readline/functions/readline-add-history.xml +++ b/reference/readline/functions/readline-add-history.xml @@ -12,9 +12,9 @@ truereadline_add_history stringprompt - + This function adds a line to the command line history. - + @@ -23,9 +23,9 @@ prompt - + The line to be added in the history. - + @@ -33,9 +33,9 @@ &reftitle.returnvalues; - + &return.true.always; - + - + readline_clear_history Clears the history - + &reftitle.description; truereadline_clear_history - + This function clears the entire command line history. - + @@ -24,9 +24,9 @@ &reftitle.returnvalues; - + &return.true.always; - + - + readline_list_history Lists the history - + &reftitle.description; arrayreadline_list_history - + Gets the entire command line history. - + @@ -24,14 +24,13 @@ &reftitle.returnvalues; - + Returns an array of the entire command line history. The elements are indexed by integers starting at zero. - + - - + readline_on_new_line Inform readline that the cursor has moved to a new line - + &reftitle.description; voidreadline_on_new_line - + Tells readline that the cursor has moved to a new line. - + @@ -24,22 +24,21 @@ &reftitle.returnvalues; - + &return.void; - + &reftitle.notes; - + This function is only available if supported by the underlying readline library. It is not supported on Windows. - + - - + readline_redisplay Redraws the display - + &reftitle.description; voidreadline_redisplay - + Redraws readline to redraw the display. - + @@ -24,12 +24,11 @@ &reftitle.returnvalues; - + &return.void; - + - - - + &reftitle.setup;
&reftitle.required; - + To use the readline functions, you need to install libreadline. You can find libreadline on the home page of the GNU Readline project, at &url.readline;. It's maintained by Chet Ramey, who's also the author of Bash. - - + + You can also use these functions with the libedit library, a non-GPL replacement for the readline library. The libedit library is BSD licensed and available for download from &url.libedit;. - +
@@ -29,7 +28,6 @@ &reference.readline.ini;
- -