From: Roland Häder Date: Tue, 18 Sep 2012 13:54:22 +0000 (+0000) Subject: Used str_pad() instead of prependStringToString() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b83661c8539ccf9df66e327972ddbef1ae9d507c;p=hub.git Used str_pad() instead of prependStringToString() --- diff --git a/application/hub/main/iterator/producer/keys/class_TestUnitKeyProducerIterator.php b/application/hub/main/iterator/producer/keys/class_TestUnitKeyProducerIterator.php index 75b057c3d..6173af3ef 100644 --- a/application/hub/main/iterator/producer/keys/class_TestUnitKeyProducerIterator.php +++ b/application/hub/main/iterator/producer/keys/class_TestUnitKeyProducerIterator.php @@ -82,7 +82,7 @@ class TestUnitKeyProducerIterator extends BaseIterator implements Iterator { $current = $this->dec2asc($this->currentIteration); // Prepend more zeros - $current = $this->prependStringToString($current, chr(0), ($this->keyLength / 8)); + $current = str_pad($current, ($this->keyLength / 8), chr(0), STR_PAD_LEFT); // Return it return $current;