summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-08-24 12:52:07 +0000
committerWez Furlong <wez@php.net>2004-08-24 12:52:07 +0000
commitbbd6dec20c341b9a9468ab9305b0731da782d5bb (patch)
tree3ef90f179c191d9c328217c613ee9f8e1eb5c731 /ext/pcre/php_pcre.c
parent0bfb0fad9227819c32fdd73dd0735a8a3fe93a15 (diff)
downloadphp-git-bbd6dec20c341b9a9468ab9305b0731da782d5bb.tar.gz
Add support for the readline callback interface, allowing you to interleave
IO and user input. Sample script: <?php dl("readline.so"); function handle_user_input($line) { echo "You typed: '$line'\n"; if ($line == 'exit') exit; } readline_callback_handler_install('type! > ', 'handle_user_input'); while (true) { $n = stream_select($r = array(STDIN), $w = null, $e = null, null); if ($n && in_array(STDIN, $r)) { readline_callback_read_char(); } }
Diffstat (limited to 'ext/pcre/php_pcre.c')
0 files changed, 0 insertions, 0 deletions