From b83661c8539ccf9df66e327972ddbef1ae9d507c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 18 Sep 2012 13:54:22 +0000 Subject: [PATCH] Used str_pad() instead of prependStringToString() --- .../producer/keys/class_TestUnitKeyProducerIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5