Improved getNamedEntity.  The function no longer accepts the first matching entity, but continues matching until each character of the input string has been processed (up to a maximum of characters equal to the length of the longest entity - currently &thetasym; ) after which the most recently matched entity is returned.  Additionally, matching is performed on the input string, the input string with the second and subsequent characters as lowercase and the input string with all lowercase characters.  This commit also prevents characterToEntityMap and entityToCharacterMap arrays from being recreated each time the codec is constructed. For more info see: https://lists.owasp.org/pipermail/esapi-php/2010-February/000549.html
Improved getNamedEntity.  The function no longer accepts the first matching entity, but continues matching until each character of the input string has been processed (up to a maximum of characters equal to the length of the longest entity - currently &thetasym; ) after which the most recently matched entity is returned.  Additionally, matching is performed on the input string, the input string with the second and subsequent characters as lowercase and the input string with all lowercase characters.  This commit also prevents characterToEntityMap and entityToCharacterMap arrays from being recreated each time the codec is constructed.
For more info see: https://lists.owasp.org/pipermail/esapi-php/2010-February/000549.html
jollysean/PHP-ESAPI,gpedro/PHP-ESAPI,najamelan/PHP-ESAPI,najamelan/PHP-ESAPI,gpedro/PHP-ESAPI,OWASP/PHP-ESAPI,jollysean/PHP-ESAPI,OWASP/PHP-ESAPI,najamelan/PHP-ESAPI,gpedro/PHP-ESAPI,jollysean/PHP-ESAPI,OWASP/PHP-ESAPI