From:             
Operating system: Ubuntu 11.04
PHP version:      5.3.6
Package:          Filesystem function related
Bug Type:         Bug
Bug description:finfo_open doesn't load .mgc when default magic_file is a 
directory

Description:
------------
The finfo_open function has the 2nd argument magic_file. It's default is
meant to 

be the following:



If not specified, the MAGIC environment variable is used. If this variable
is not 

set either, /usr/share/misc/magic is used by default. A .mime and/or .mgc
suffix 

is added if needed.



On my system, the /usr/share/misc/magic is a directory (with no files
beneath 

it).



I think in the case that the default magic_file is a directory, load the
next 

default (/usr/share/misc/magic.mgc)






-- 
Edit bug report at http://bugs.php.net/bug.php?id=54714&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54714&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54714&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54714&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54714&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54714&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54714&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54714&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54714&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54714&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54714&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54714&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54714&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54714&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54714&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54714&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54714&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54714&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54714&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54714&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54714&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54714&r=mysqlcfg

Reply via email to