aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-09-13 15:14:35 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-09-13 15:14:35 +0200
commita3cb9643a485357804e83eff3251d07ddfc6ac78 (patch)
treef3227cd4bd6e3edd79872567a32d58ca5987b5a6
parent237e055102731202252d670f4bb6024c55f46983 (diff)
downloadStream-a3cb9643a485357804e83eff3251d07ddfc6ac78.zip
Stream-a3cb9643a485357804e83eff3251d07ddfc6ac78.tar.gz
Stream-a3cb9643a485357804e83eff3251d07ddfc6ac78.tar.bz2
Safer way to loop on filter bucket data.
-rw-r--r--Filter/Basic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Filter/Basic.php b/Filter/Basic.php
index 2bf0ed8..555bf2b 100644
--- a/Filter/Basic.php
+++ b/Filter/Basic.php
@@ -138,7 +138,7 @@ abstract class Basic extends \php_user_filter {
$iBucket = new \Hoa\Stream\Bucket($in);
$oBucket = new \Hoa\Stream\Bucket($out);
- while(true !== $iBucket->eob()) {
+ while(false === $iBucket->eob()) {
$consumed += $iBucket->getLength();
$oBucket->append($iBucket);