Bug #73046 [NEW]: 'ext/fileinfo/create_data_file.php' don't work on Fedora 24
| From: | spam2 at rhsoft dot net | Date: | Thu, 08 Sep 2016 11:08:11 +0000 |
| Subject: | Bug #73046 [NEW]: 'ext/fileinfo/create_data_file.php' don't work on Fedora 24 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-203875@lists.php.net to get a copy of this message | ||
From: spam2 at rhsoft dot net
Operating system: Linux
PHP version: 7.0.11RC1
Package: Compile Failure
Bug Type: Bug
Bug description:'ext/fileinfo/create_data_file.php' don't work on Fedora 24
Description:
------------
while trying to solve https://bugs.php.net/bug.php?id=67516 by use the
systems "magic.mgc" in the rpm build-process this ends in a unuseable
'fileinfo.so' - the build process looks fine, the size reasonable but:
___________________________________________
Warning: finfo_open(): Failed to load magic database at '(null)'. in
/mnt/data/lounge-daten/php-mimtype-bug/mime.php on line 15
Warning: finfo_file() expects parameter 1 to be resource, boolean given
in /mnt/data/lounge-daten/php-mimtype-bug/mime.php on line 16
Warning: finfo_close() expects parameter 1 to be resource, boolean given
in /mnt/data/lounge-daten/php-mimtype-bug/mime.php on line 17
___________________________________________
file-5.25-6.fc24.x86_64
file-libs-5.25-6.fc24.x86_64
https://koji.fedoraproject.org/koji/packageinfo?packageID=418
Test script:
---------------
%prep
%setup -q -n php-%{version}
%patch1 -p1
# generate 'data_file.c' from bundeled libmagic with current system
data
/usr/bin/php ext/fileinfo/create_data_file.php /usr/share/misc/magic.mgc
> ext/fileinfo/data_file.c
_____________________________________
above how i tried re-generate 'data_file.c' within rpmbuild (yes it's a
bootsrap issue if PHP is not in any version installed but woul dbe OK
for local packaging and can be warpped in a check if it exists too)
Expected result:
----------------
'data_file.c' created with updated magic-db and so for years fiuxed
wrong detected filetypes corrected
Actual result:
--------------
unusable 'fileinfo.so' (--enable-fileinfo=shared) which loads but don#t
work
Warning: finfo_open(): Failed to load magic database at '(null)'. in
/mnt/data/lounge-daten/php-mimtype-bug/mime.php on line 15
Warning: finfo_file() expects parameter 1 to be resource, boolean given
in /mnt/data/lounge-daten/php-mimtype-bug/mime.php on line 16
Warning: finfo_close() expects parameter 1 to be resource, boolean given
in /mnt/data/lounge-daten/php-mimtype-bug/mime.php on line 17
--
Edit bug report at https://bugs.php.net/bug.php?id=73046&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73046&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73046&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73046&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73046&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73046&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73046&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73046&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73046&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73046&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73046&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73046&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73046&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73046&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73046&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73046&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73046&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73046&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73046&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73046&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73046&r=mysqlcfg