Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66823 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1029 invoked from network); 26 Mar 2013 22:44:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Mar 2013 22:44:23 -0000 Authentication-Results: pb1.pair.com header.from=ab@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ab@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.73.107 as permitted sender) X-PHP-List-Original-Sender: ab@php.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:60704] helo=h1123647.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DA/0F-16933-FB422515 for ; Tue, 26 Mar 2013 17:44:22 -0500 Received: by h1123647.serverkompetenz.net (Postfix, from userid 1006) id 687956FCBEF; Tue, 26 Mar 2013 23:44:12 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on h1123647.serverkompetenz.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.5 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable version=3.3.1 Received: from [192.168.178.7] (dslb-094-216-046-074.pools.arcor-ip.net [94.216.46.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by h1123647.serverkompetenz.net (Postfix) with ESMTPSA id 7294D6FCBEC; Tue, 26 Mar 2013 23:44:10 +0100 (CET) To: David Soria Parra , Johannes =?ISO-8859-1?Q?Schl=FCter?= , Stas Malyshev Cc: PHP Internals Content-Type: text/plain; charset="UTF-8" Date: Tue, 26 Mar 2013 23:44:06 +0100 Message-ID: <1364337846.21443.58.camel@ghost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Subject: libmagic 5.14 upgrade From: ab@php.net (Anatol Belski) Hi, I've developed a patch for libmagic 5.14 which is available under http://belski.net/phpz/finfo/finfo_5.14_5.patch.gz . For those willing to test please overwrite ext/fileinfo/tests/magic with http://belski.net/phpz/finfo/magic.mgc.gz (not contained in the patch). I've tested it on Linux and Windows, the issues it brings are minimal. The tests failing are test fails due to the lib upgrade. The reason I'm suggesting the patch now is that there was a discussion on IRC about upgrading libmagic for 5.5. We haven't have any upgrades to the filenfo extension on all the branches since about 1 year. That's why tickets like bug #64462 come to the life. David is going to tag the beta2 tomorrow, so there is kind of time pressure. IMHO it'd really make sense to put the upgraded libmagic into 5.5 despite it's beta already. Even 5.4 would come to question. At the moment we have libmagic 5.11 in all the branches. With this we're about a year back in time. Thinking that 5.5 without even have been released yet has two years old libmagic in a year is not nice. 5.4 would also profit from that IMHO. Of course I cant guarantee (as this is a bit sudden) the patch is perfect yet, it has some bugs for sure. However the patch is related only to libmagic, no line of fileinfo ext is touched. I'm sure any possible issues canbe fixed over the next couple of weeks. I'll be working on improvements to it in the next days anyway. What +/- I personally see upgrading this at this time: contra: - there might be bugs, the next release might have not all them fixed - 5.11 is what the latest linux exts have even as dev - older/custom magic files might be incompatible pro: - latest libmagic data - better safety for the future - in a year all that libs are for sure upgraded in the main distros - further upgrades can be better handled Please note that the latest libmagic upgrade was from 5.02 to 5.11 and there was no significant breach in 5.3+. I can just repeat that upgrading 5.4+ would make pretty much sense when looking forward. Cheers Anatol