mirror of
https://github.com/php/php-src.git
synced 2026-04-27 10:16:41 +02:00
eaddc9f7d9
If PHP readline extension is using libedit or readline the output is different with the readline library also the prompt is output.
16 lines
361 B
PHP
16 lines
361 B
PHP
--TEST--
|
|
readline() function - without input
|
|
--CREDITS--
|
|
Jonathan Stevens <info at jonathanstevens dot be>
|
|
User Group: PHP-WVL & PHPGent #PHPTestFest
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("readline") || !function_exists('readline') || die("skip"); ?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(readline());
|
|
var_dump(readline('Prompt:'));
|
|
?>
|
|
--EXPECTF--
|
|
bool(false)
|
|
%Abool(false)
|