Do we have other extensions using libmagic other then fileinfo? Otherwise, could we not solve it with define flags for fileinfo extension?

On 27-Nov-08, at 3:40 PM, Scott MacVicar wrote:

On 27 Nov 2008, at 20:33, Ilia Alshanetsky wrote:

Is there a reason you do not want to use PHP wrappers & allocation protection?

On 27-Nov-08, at 2:45 PM, Scott MacVicar wrote:

scottmac                Thu Nov 27 19:45:16 2008 UTC

Modified files:
 /php-src/ext/fileinfo/libmagic print.c
 /php-src/main  snprintf.c snprintf.h
Add asprintf, use regular system malloc and free and add checks in for the functions

Ilia Alshanetsky

If you didn't realise you were using a PHP version and used a free() as you'd expect to work then you'd get the memory manager complaining later on.


Ilia Alshanetsky

PHP CVS Mailing List (
To unsubscribe, visit:

Reply via email to