[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: Regression in fix for php bug #68739



Hello,

This patch was also breaking finfo_open():

$finfo = finfo_open(FILEINFO_MIME, '/usr/share/file/magic');

would return an error in -24 , it worked in -23 (and it works
again in -25).

Probably some kind of mismanagement of /tmp, as calling magic.mgc
(the binary version) works fine in all version.


Test script:

<?php
$const = FILEINFO_MIME;
// works in -23 and -25, breaks in -24:
$finfo = finfo_open($const, '/usr/share/file/magic');
// works in all, including -24:
//$finfo = finfo_open($const, '/usr/share/file/magic.mgc');
//var_dump($finfo);
if (!$finfo)
   echo "Unable to open file\n";
?>

	Arnaud.


Reply to: