Remove old workaround for HHVM
authorMax Semenik <maxsem.wiki@gmail.com>
Fri, 13 Oct 2017 00:38:34 +0000 (17:38 -0700)
committerMax Semenik <maxsem.wiki@gmail.com>
Fri, 13 Oct 2017 00:38:34 +0000 (17:38 -0700)
The bug in question was fixed in HHVM 3.6.0, our minimum requirement is 3.6.5.

Change-Id: Id1d65cf438c7148064d747f09728ef4cb5f51b52

maintenance/Maintenance.php

index ecbbb85..4ad6e6e 100644 (file)
@@ -1444,13 +1444,7 @@ abstract class Maintenance {
                }
 
                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 );