fix optional parameters in number_format

fix issue #123

only php-5.4 has this parameters, I added it in php 5.2 and 5.3 standard