php/php-src — pull request #91 by reeze (2012-05-24 17:58:49+00:00)
Title: Fixed bug #61964 (finfo_open with directory cause invalid free)

Hi,
we have been discuss this issue in irc, @laruence got some concern,
then I sent a mail to the file lib author: Christos Zoulas .
he replied:

> > I got two question to ask:
> > 1. is *file* intend to support dir?
> > 2. does the double free is bug?
> Yes, yes, and I don't know what version you are using but the current version
> does asprintf() not snprintf().

both 5.3&5.4 didn't use asprintf(), we use our memory management functions.

after got his reply I think I can send this PR to ask you guys comment.

Thanks.