Small perf tweak in strlen loop

This commit is contained in:
Vincent Petry 2015-05-18 13:27:22 +02:00
parent 85f500f070
commit 9d3d7ec659
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ class Encryption extends Wrapper {
$length = 0;
// loop over $data to fit it in 6126 sized unencrypted blocks
while (strlen($data) > 0) {
while (isset($data[0])) {
$remainingLength = strlen($data);
// set the cache to the current 6126 block