The use of curly braces is deprecated in php 4.0, so changing it to
square brackets
Change-Id: Ia820cea34d2bd92fe1c3bc8fd773942a425ec90a
} else {
$result = 0;
for ( $i = 0; $i < strlen( $answer ); $i++ ) {
- $result |= ord( $answer{$i} ) ^ ord( $test{$i} );
+ $result |= ord( $answer[$i] ) ^ ord( $test[$i] );
}
$passwordCorrect = ( $result == 0 );
}
} else {
$result = 0;
for ( $i = 0; $i < strlen( $cSig ); $i++ ) {
- $result |= ord( $cSig{$i} ) ^ ord( $rSig{$i} );
+ $result |= ord( $cSig[$i] ) ^ ord( $rSig[$i] );
}
$verified = ( $result == 0 );
}