matomo-org / component-ini

Read and write INI configurations.
GNU Lesser General Public License v3.0
50 stars 25 forks source link

Strings looking like numeric hex values are casted to float #1

Closed mnapoli closed 9 years ago

mnapoli commented 9 years ago

For example 52e666 will be considered as a valid numeric value by PHP, and the INI component will cast it to a number (with transforms the string).

I guess the solution to use would be to cast to numbers only strings that contain numbers only. That way casting back to string will give the same result.