Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 294860

Summary: dev-php5/pecl-fileinfo issues
Product: Gentoo Linux Reporter: Niko Efthymiou <nefthy-gentoo-bugzilla>
Component: Current packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Niko Efthymiou 2009-11-27 14:33:12 UTC
pecl-file info has a broken ("" instead of "/usr/share/misc/magic.mgc") PHP_DEFAUL_MAGIC_FILE path. 

Reproducible: Always

Steps to Reproduce:
1. set error_reporting to E_ALL in php.ini
2. php -r 'finfo_open();'

Actual Results:  
Warning: finfo_open(): file = ''. in Command line code on line 1

Expected Results:  
finfo_open() is supposed to take the system default magic file if no argument is given.

problem can be fixed by setting PHP_DEFAULT_MAGIC_FILE to "/usr/share/misc/magic.mgc" in the config.h
Comment 1 Yuval Hager 2009-12-16 12:46:30 UTC
Seems like a dupe of #288043
Comment 2 Christian Hoffmann (RETIRED) gentoo-dev 2009-12-16 17:04:40 UTC
Yes, you are right, thanks.

*** This bug has been marked as a duplicate of bug 288043 ***