mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
The `--EXTENSIONS--` section already ensures that ext/readline is available, so there's no need to additionally check for unconditionally available readline functions. Closes GH-17170.
16 lines
283 B
PHP
16 lines
283 B
PHP
--TEST--
|
|
readline() function - without input
|
|
--CREDITS--
|
|
Jonathan Stevens <info at jonathanstevens dot be>
|
|
User Group: PHP-WVL & PHPGent #PHPTestFest
|
|
--EXTENSIONS--
|
|
readline
|
|
--FILE--
|
|
<?php
|
|
var_dump(readline());
|
|
var_dump(readline('Prompt:'));
|
|
?>
|
|
--EXPECTF--
|
|
bool(false)
|
|
%Abool(false)
|