Hi Xinchen,

On Tue, Jun 23, 2015 at 11:33 PM, Xinchen Hui <larue...@php.net> wrote:

> But passing an non-string to htmlspecialchars are not common used cases..
>
> "optimize" not common used cases... will bring nothing to us..
>

The reason why I looked into this in the first place is one of my friend
complained about slow htmlspecialchars for relatively large table data.

He said more than half of execution time is took by htmlspecialchars
because

 - it escapes numeric values as string
 - it does not accept array value for to be escaped values

1st is covered by this patch.
2nd issue is covered by this FR.
  https://bugs.php.net/bug.php?id=69908

So it brings something for us :)

Regards,

--
Yasuo Ohgaki
yohg...@ohgaki.net

Reply via email to