Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89519 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85582 invoked from network); 2 Dec 2015 07:52:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Dec 2015 07:52:06 -0000 Authentication-Results: pb1.pair.com header.from=martin.keckeis1@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=martin.keckeis1@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.49 as permitted sender) X-PHP-List-Original-Sender: martin.keckeis1@gmail.com X-Host-Fingerprint: 209.85.215.49 mail-lf0-f49.google.com Received: from [209.85.215.49] ([209.85.215.49:35516] helo=mail-lf0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/70-16824-423AE565 for ; Wed, 02 Dec 2015 02:52:05 -0500 Received: by lfdl133 with SMTP id l133so39565624lfd.2 for ; Tue, 01 Dec 2015 23:52:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=alRZ6e90KikmUDgK1z/z+S8dQWRA8cnztQawFBxIv0w=; b=GkLhMfyg3n97x2ptOdhAc6X0cuucQLTjB56vLFYxM7+qAIn6086xIymxD1kQ4S9NfB dtob55ZXgt4+EAtLg9aeR3Ikc/6yl/JbDaWPi2TEClY1SxyePYnInbpNTWE2KtlToclB sX8p0TN8AIrJOV05xQVNJpexeRsrdmYRjTAX7m5SVTIF4M0YU7PAZ2nw61WJJqb+aMkM u+sqaqjhlLP7BrpasGg24th8tLBDBuYSjlWAt7tBTM1SEDdNMhGopiShAnwXum4rRif6 3B6GiBlVnsLrOODEhMOtxMwyTZvtACG0kAFbYTuTS1VXF6UnsORPmXF6pUviARgc3lSM +zJg== MIME-Version: 1.0 X-Received: by 10.25.42.20 with SMTP id q20mr1069910lfq.158.1449042721344; Tue, 01 Dec 2015 23:52:01 -0800 (PST) Received: by 10.25.21.27 with HTTP; Tue, 1 Dec 2015 23:52:01 -0800 (PST) Date: Wed, 2 Dec 2015 08:52:01 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=001a11411542ab96b00525e58ca0 Subject: Remove get_browser() from core From: martin.keckeis1@gmail.com (Martin Keckeis) --001a11411542ab96b00525e58ca0 Content-Type: text/plain; charset=UTF-8 Hello together, i think it's time to deprecate the function get_browser(). The reason is simple: Since the browscap.ini file has grown a lot this function does need way too much time, see here for example http://stackoverflow.com/questions/12067641/get-browser-slowing-down-page-load-any-alternative The underlying browscap.ini file is still a very resource to use and there are very good official packages out there to use it https://packagist.org/packages/browscap/browscap-php I also compared the browscap.ini file to other UserAgent parsers around and it looks still good http://thadafinser.github.io/UserAgentParserComparison/results/index.html Alternative is only an optimization for this function, but i think it's not worth, since the offical package is good. What you guys think? Best regards Martin --001a11411542ab96b00525e58ca0--