summaryrefslogtreecommitdiff
path: root/inc/aspell.php
diff options
context:
space:
mode:
authorhenning.noren <henning.noren@gmail.com>2007-01-03 21:57:00 +0100
committerhenning.noren <henning.noren@gmail.com>2007-01-03 21:57:00 +0100
commit44881bd0f492e789063188af34111af4b4117028 (patch)
tree5d54c53e786bbfe45a3dfe0efda26e51c6ca5fc6 /inc/aspell.php
parentbab4a8bd9772137a187f48beb6e61c185932b692 (diff)
downloadrpg-44881bd0f492e789063188af34111af4b4117028.tar.gz
rpg-44881bd0f492e789063188af34111af4b4117028.tar.bz2
tf_rename_lower.patch
Name the TRUE/FALSE-constants consistently as lowercase everywhere. This might also be an tiny optimization in some environments. darcs-hash:20070103205700-d2a3e-e7ec0aedb938d563f583116a2d5b17f3a3fea36c.gz
Diffstat (limited to 'inc/aspell.php')
-rw-r--r--inc/aspell.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/inc/aspell.php b/inc/aspell.php
index 8c033e2c8..9030d25c7 100644
--- a/inc/aspell.php
+++ b/inc/aspell.php
@@ -234,15 +234,15 @@ class Aspell{
$txOff = 0;
$txLen = strlen($stdin);
- $stdoutDone = FALSE;
- $stderrDone = FALSE;
+ $stdoutDone = false;
+ $stderrDone = false;
stream_set_blocking($pipes[0], 0); // Make stdin/stdout/stderr non-blocking
stream_set_blocking($pipes[1], 0);
stream_set_blocking($pipes[2], 0);
if ($txLen == 0) fclose($pipes[0]);
- while (TRUE) {
+ while (true) {
$rx = array(); // The program's stdout/stderr
if (!$stdoutDone) $rx[] = $pipes[1];
if (!$stderrDone) $rx[] = $pipes[2];
@@ -252,7 +252,7 @@ class Aspell{
if (!empty($tx)) {
$txRet = fwrite($pipes[0], substr($stdin, $txOff, 8192));
- if ($txRet !== FALSE) $txOff += $txRet;
+ if ($txRet !== false) $txOff += $txRet;
if ($txOff >= $txLen) fclose($pipes[0]);
}
@@ -261,13 +261,13 @@ class Aspell{
$stdout .= fread($pipes[1], 8192);
if (feof($pipes[1])) {
fclose($pipes[1]);
- $stdoutDone = TRUE;
+ $stdoutDone = true;
}
} else if ($r == $pipes[2]) {
$stderr .= fread($pipes[2], 8192);
if (feof($pipes[2])) {
fclose($pipes[2]);
- $stderrDone = TRUE;
+ $stderrDone = true;
}
}
}