https://github.com/facebook/hhvm/issues/4776
Change-Id: I9d3e6817cee2fa2c11e02989a4b11915f0c708f5
}
if ( $isatty && function_exists( 'readline' ) ) {
}
if ( $isatty && function_exists( 'readline' ) ) {
- return readline( $prompt );
+ $resp = readline( $prompt );
+ if ( $resp === null ) {
+ // Workaround for https://github.com/facebook/hhvm/issues/4776
+ return false;
+ } else {
+ return $resp;
+ }
} else {
if ( $isatty ) {
$st = self::readlineEmulation( $prompt );
} else {
if ( $isatty ) {
$st = self::readlineEmulation( $prompt );