The bug in question was fixed in HHVM 3.6.0, our minimum requirement is 3.6.5.
Change-Id: Id1d65cf438c7148064d747f09728ef4cb5f51b52
}
if ( $isatty && function_exists( 'readline' ) ) {
}
if ( $isatty && function_exists( 'readline' ) ) {
- $resp = readline( $prompt );
- if ( $resp === null ) {
- // Workaround for https://github.com/facebook/hhvm/issues/4776
- return false;
- } else {
- return $resp;
- }
+ return readline( $prompt );
} else {
if ( $isatty ) {
$st = self::readlineEmulation( $prompt );
} else {
if ( $isatty ) {
$st = self::readlineEmulation( $prompt );