cspray/SprayFire — pull request #106 by cspray (2012-12-27 01:50:34+00:00)
Title: Numeric and boolean data preservation on output escaping

This pull request adds functionality to selectively allow preservation of numeric and boolean data types when escaping data with the OutputEscaper. This merge will add the following constants and methods:

Constants
---------------------------------------------------
`NO_PRESERVATION`
`PRESERVE_BOOLEAN`
`PRESERVE_NUMERIC`

Methods
--------------------------------------------------
`preserveDataType`

The parameter for `preserveDataType` accepts the constant values, either by itself or as a bitmask. By default the OutputEscaper will escape data with `NO_PRESERVATION` unless explicitly set with `preserveDataType`. Also, fixes an error where if data passed to escaper is not an array or a string a null value would be returned.

This merge also removes the IniBootstrap test as it was testing a simple loop with `ini_set` and it could potentially wind up causing php.ini values being inadvertently changed to an invalid value.