php-src/ext/readline
KsaR 01b3fc03c3
Update http->https in license (#6945)
1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https.
2. Update few license 3.0 to 3.01 as 3.0 states "php 5.1.1, 4.1.1, and earlier".
3. In some license comments is "at through the world-wide-web" while most is without "at", so deleted.
4. fixed indentation in some files before |
2021-05-06 12:16:35 +02:00
..
tests Deprecate passing null to non-nullable arg of internal function 2021-02-11 21:46:13 +01:00
config.m4 Normalize comments in *nix build system m4 files 2019-05-12 18:43:03 +02:00
config.w32 add readline_list_history with libedit >= 3.1 and mingweditline 2019-02-19 08:51:56 +01:00
CREDITS
php_readline.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
readline_arginfo.h Improve class entry generation 2021-02-16 13:09:56 +01:00
readline_cli.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
readline_cli.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
readline.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
readline.stub.php Generate class entries from stubs for phar, posix, pspell, readline, reflection, session, shmop 2021-02-15 00:11:22 +01:00
README.md Allow overriding completion in auto_prepend_file 2020-08-01 11:39:08 -04:00

readline

Provides generic line editing, history, and tokenization functions. See https://www.php.net/manual/en/book.readline.php

Implementation Details

C variables starting with rl_* are declared by the readline library (or are macros referring to variables from the libedit library). See http://web.mit.edu/gnu/doc/html/rlman_2.html

This should only be used in the CLI SAPI. Historically, the code lived in sapi/cli, but many distributions build readline as a shared extension. Therefore, that code was split into ext/readline so that this can dynamically be loaded. With other SAPIs, readline is/should be disabled.

readline_cli.c implements most of the interactive shell(php -a).