diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2008-08-15 01:29:47 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2008-08-15 01:29:47 +0200 |
commit | 370e83bb0dfd0c70de268c93bf07ad5ee0897192 (patch) | |
tree | 491674f4c242e4d6ba0d04eafa305174c35a3391 /maintenance/fetchText.php | |
parent | f4debf0f12d0524d2b2427c55ea3f16b680fad97 (diff) |
Update auf 1.13.0
Diffstat (limited to 'maintenance/fetchText.php')
-rw-r--r-- | maintenance/fetchText.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/maintenance/fetchText.php b/maintenance/fetchText.php index 3b745c0a..91b78be3 100644 --- a/maintenance/fetchText.php +++ b/maintenance/fetchText.php @@ -1,7 +1,9 @@ <?php - /** * Communications protocol... + * + * @file + * @ingroup Maintenance */ require "commandLine.inc"; @@ -10,6 +12,10 @@ $db = wfGetDB( DB_SLAVE ); $stdin = fopen( "php://stdin", "rt" ); while( !feof( $stdin ) ) { $line = fgets( $stdin ); + if( $line === false ) { + // We appear to have lost contact... + break; + } $textId = intval( $line ); $text = doGetText( $db, $textId ); echo strlen( $text ) . "\n"; @@ -31,6 +37,3 @@ function doGetText( $db, $id ) { } return $text; } - - -?>
\ No newline at end of file |