Page MenuHomePhabricator

CSSMin produces a fileinfo warning on PHP 5.2, fileinfo 1.0.4 from PECL
Closed, ResolvedPublic

Description

CSSMin produces lots of warnings in /var/log/syslog, all of the form

Dec 4 07:50:21 j-crew apache2: PHP Warning: finfo_open() expects parameter 1 to be long, string given in /srv/www/mediawiki/code/includes/libs/CSSMin.php on line 106
Dec 4 07:50:21 j-crew apache2: PHP Warning: finfo_file(): supplied argument is not a valid file_info resource in /srv/www/mediawiki/code/includes/libs/CSSMin.php on line 106

This is PHP 5.2.6.dfsg.1-1+lenny9 on Debian Lenny, fileinfo 1.0.4 installed via PECL (see http://pecl.php.net/package/Fileinfo/1.0.4). Running on MediaWiki trunk, updated two days ago.


Version: 1.17.x
Severity: normal

Details

Reference
bz26228

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:15 PM
bzimport set Reference to bz26228.

This should be fixed with r77798, please confirm.

Thank you for the fast bugfix! The issue is indeed fixed in SVN trunk.