Hi!

> Current php_html_entities() convert int/float/etc to string, then convert
> it.
> int/float/etc is not required to be escaped. Optimize it by simply
> converting them to string.

I'm not sure this is the case that is used frequently enough to actually
optimize for it in PHP code. If for particular app it is in the hot
path, wouldn't it be easier to just add a if(is_numeric()) or is_int()
check?

-- 
Stas Malyshev
smalys...@gmail.com

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to