OWASP / PHP-ESAPI

Migrated from code.google.com to a more active public repository.
Other
65 stars 26 forks source link

Parameter missing in Base64Codec #9

Open renaatdemuynck opened 9 years ago

renaatdemuynck commented 9 years ago

When running the tests I get following error: PHP Strict Standards: Declaration of Base64Codec::encodeCharacter() should be compatible with Codec::encodeCharacter($immune, $c) in C:\WAMP\www\php-esapi\src\codecs\Base64Codec.php on line 47 Methods encode and encodeCharacter of class Base64Codec are not compatible with their respective parent methods of class Codec. Parameter $immune is missing from both methods. Although there shouldn't be immune characters in a base64 encoder, strictly speaking, the parameter should be available. Note: Fixing this will break backwards compatibility (unless some dirty hack is used)