Index: trunk/phase3/install-utils.inc |
— | — | @@ -63,7 +63,7 @@ |
64 | 64 | function readconsole( $prompt = '' ) { |
65 | 65 | static $isatty = null; |
66 | 66 | if ( is_null( $isatty ) ) { |
67 | | - if ( !function_exists( 'posix_isatty' ) || posix_isatty( STDIN ) ) { |
| 67 | + if ( !function_exists( 'posix_isatty' ) || posix_isatty( 0 /*STDIN*/ ) ) { |
68 | 68 | $isatty = true; |
69 | 69 | } else { |
70 | 70 | $isatty = false; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -421,6 +421,8 @@ |
422 | 422 | parser tests when Chinese tables were getting loaded into Serbian code. |
423 | 423 | * (bug 8380) Be nicer about blank lines in deleteBatch.php |
424 | 424 | * (bug 8401) Fix regression in SORBS lookup for some DNS setups |
| 425 | +* Use raw file descriptor in posix_isatty() check to avoid warning on |
| 426 | + Linux systems with at least some versions of PHP |
425 | 427 | |
426 | 428 | |
427 | 429 | == Languages updated == |