Team Ai
Apppublic

errorcode418/php

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
CHANGELOG.md209 linesDownload Raw Back to uap-php
1# Changelog2 3## 3.4.24 - Update uap-core5 6## 3.4.17 - Fix a regex delimiter issue with uap-core8 - Bundle regex.php with uap-php9 10## 3.4.011 - ADD: device Parsing with brand model and case insensitive testing12 - Use `peer_name` instead of `CN_match` for PHP >=5.613 - Advertise Gitter chat for support requests14 - Include uap-core as a git submodule15 16## 3.3.117 - PSR-4 ready18 - Self repository, less useless files19 20## 3.3.021 - Use composer for dependency management22 - Introduce namespaces23 - Removing legacy library dependencies24 - Use PHPUnit for testing25 - Make all tests pass, fix all the remaining bugs26 - Introduce specific result objects27 - Comply with PSR-X coding standards:28   * `UAParser` class is now `UAParser\Parser`29   * Typed result objects: `Parser::parse()` returns `UAParser\Result\Client`, `Client::$os` is a  `UAParser\Result\OperatingSystem` and `Client::$device` is a `UAParser\Result\Device`30   * `toString()` and `toVersion()` are now methods31   * Properties now use camelCase, not underscore_case.32 - Use Travis for CI33 - Update README34 - Port command line tool to Symfony CLI35 - Secure updating: SSL certificate verification, hashing, try to do atomic updates36 - Restore fetching YAML file only (without generating JSON)37 38## 2.1.139 - FIX: making sure patch minor is being populated correctly when showing a mismatch40 41## 2.1.042 - ADD: support for custom regexes.json files (via @pravindahal)43 - FIX: formerly private vars/functions are now protected (via @pravindahal)44 - FIX: command line tool gets 'pretty' option for PHP 5.4 users (via @skyzyx)45 - FIX: refactored the regexes.yaml test suite46 - FIX: now check to see if allow_url_fopen is set to 'On' before trying to download the YAML file from the command line47 - THX: thanks to @pravindahal and @skyzyx for the pull requests48 49## 2.0.150 - FIX: renamed uaParser, osParser, & deviceParser to uaParse, osParse, & deviceParse to address a bug with uaParser being recognized as the contruct function for the overall lib51 - FIX: updated the test lib so that device failures are properly formatted52 53## 2.0.054 - Summary:55   * the `UAParser` class is now dynamic56   * properties are nested _(e.g. $result->family is now $result->ua->family)_57   * a user agent string is now required when using `parse()`. the auto-magical "use the server provided UA" is no longer supported.58   * `uaParse()`, `osParse()`, and `deviceParse()` are public and can be used to just return those select bits for a given user agent string.59   * the `is*` boolean properties _(e.g. isMobile)_ have been dropped. they now exist as part of the `ua-classifier` project.60 - ADD: toString() converts the version bits and family into a simple string61 - ADD: toVersionString() converts the version bits into a simple string62 - ADD: toFullString() combines the UA and OS family and version bits63 - ADD: "convert" flag for uaparser-cli.php64 - ADD: "pull & save just regexes.yaml" flag for uaparser-cli.php65 - FIX: library is now a dynamic class66 - FIX: attributes are now nested & populated like the other ua-parser libraries (e.g. $result->family is now $result->ua->family)67 - FIX: uaParser(), osParser(), and deviceParser() are now public functions68 - FIX: saves regexes.yaml as JSON for better performance69 - FIX: removed the __DIR__ "fix"70 - FIX: Apache log parsing now returns results when UA or OS families are set to "Other" and the device is listed as a smartphone or generic feature phone71 - FIX: all tabs are now spaces72 - FIX: a UA is now run against all three parsers73 - FIX: renamed $debug var to $log to better reflect what it does74 - DEL: is* boolean attributes (e.g. isMobile) have been removed75 - DEL: will no longer auto-parse $_SERVER['HTTP_USER_AGENT'] if available76 - DEL: tests no longer run against pgts_browser_list.yaml77 - THX: thanks to @rjd22 for the dynamic class code/fix78 79## 1.5.080 - ADD: command line interface is now in its own file (via @Synchro)81 - ADD: command line utility now supports parsing an Apache log file & recording the results82 - ADD: command line utility can now parse a supplied user-agent string and push out a simple list or JSON83 - ADD: test suite that uses the ua-parser project's test resources84 - FIX: numerous comment & spacing fixes (via @Synchro & @Krinkle)85 - FIX: remove PHP4 version of spyc (via @Synchro)86 - FIX: remove .svn dirs in spyc (via @lopezdonaque)87 - FIX: notes that the PHP 5.2 fix really was for 5.1 (via @Synchro) (knew this, i was lazy)88 - FIX: lib now returns an object no matter what. now matches other ua-parser libs (via @Krinkle)89 - FIX: checks that $_SERVER attr is set before including it. should be better for command line use. 90 - FIX: family attr now properly set in an edge case91 - FIX: if regexes.yaml picks up bad slashes the PHP lib will account for it (e.g. GoogleTV regex)92 - THX: thanks to @Krinkle and @Synchro for the numerous fixes93 94## 1.4.595 - FIX: an embarrassing debug print survived the last edit96 - THX: thanks to @memakeit for dropping the bug report97 98## 1.4.499 - FIX: made sure that the regex file is only loaded once if running the library multiple times. performance boost.100 - FIX: added support for identifying various game devices as mobile devices101 - THX: thanks to @rjd22 for pointing out the perf issue102 103## 1.4.3104 - FIX: added support for patch & family attributes to sort of match the other libraries105 106## 1.4.2107 - FIX: notice if regexes.yaml is missing parens (e.g. match $1) for device & os names108 109## 1.4.1110 - FIX: notice when using UAParser from the command line111 112## 1.4.0113 - ADD: silent mode for the UA::get() method114 - ADD: nobackup mode for the UA::get() method115 - ADD: example of how to do a redirect with ua-parser-php116 - The following were changes to regexes.yaml:117   * ADD: support for Google Earth browser118   * ADD: another regex for Firefox Mobile119   * ADD: support for Firefox Alpha builds120   * ADD: support for Sogou Explorer121   * ADD: support for the Raven for Mac browser122   * ADD: support for WebKit Nightly builds (though slightly pointless)123   * FIX: better pattern matching for the Pale Moon browser124 125## 1.3.2126 - FIX: addressed false "tablet" classification for opera mobile & mini on android127 - The following were changes to regexes.yaml:128   * ADD: support for Tizen Browser (aka SLP Browser) from Samsung129   * FIX: support for a new look Polaris 8.0 user agent string130   * FIX: modified where the Epiphany Browser check happens131 132## 1.3.1133 - FIX: now doing some sanity cleaning on the user agent strings134 - FIX: added a smarter default if the user agent isn't recognized at all135 136## 1.3.0137 - FIX: now points to Tobie's ua-parser project for the latest greatest YAML file138 - FIX: YAML file is now standardized as regexes.yaml instead of user_agents_regex.yaml139 - FIX: minor NOTICE issues resolved for very select UAs140 141## 1.2.2142 - The following were changes to user_agents_regex.yaml:143   * ADD: support for UC Browser144 145## 1.2.1146 - The following were changes to user_agents_regex.yaml:147   * ADD: support for android 4 user agents that have a dash in them148 149## 1.2.0150 - FIX: should be compatible with PHP 5.2151 - FIX: addressed STRICT mode errors152 - FIX: addressed NOTICE for a missing variable153 - FIX: if isTablet is set to true then isMobile is set to false (mobile to me means phone)154 - THX: Thanks to Mike Bond of WVU Libraries for pointing out the 5.2 incompatibility155 156## 1.1.0157 - FIX: a number of fixes from bryan shelton158 - The following were changes to user_agents_regex.yaml:159   * ADD: support for Chrome Mobile160 161## 1.0.0162 - just because i don't expect to update this anytime soon and ppl report it's working163 164## 0.3.1165 - FIX: swapped nil for null in parse()166 - FIX: smarter/saner defaults167 - FIX: now using isset() for family_replacement168 - THX: thanks to bryan shelton for these fixes 169 170## 0.3.0171 - ADD: can now supply a specific UA to be checked172 - ADD: if the UA contains 'tablet' isTablet is marked true173 - ADD: for certain mobile OSs they report a desktop browser. marking them mobile now.174 - FIX: tablet listing should now be better175 - FIX: the list of mobile browsers was updated176 - FIX: made sure that certain checks won't fail as "false" if a version number was a 0177 - FIX: for the device check, if it returns spider as a result it no longer marks it as mobile178 - FIX: added more mobile browsers to that specific check179 - The following were changes to user_agents_regex.yaml:180   * ADD: symphony, minimo, teleca, semc, up.browser, bunjaloo, jasmine, & brew browsers supported181   * ADD: windows mobile 6.5 os support182   * ADD: amoi, asus, bird, dell, docomo, huawei, i-mate, kyocera, lenovo, lg, microsoft kind,183       motorola, philips, samsung, softbank, & sony ericsson device checks184   * FIX: mobile firefox, opera mobile & mini, obigo, polaris, nokiabrowser, ie mobile,185       android, & mobile safari browser checks186   * FIX: iOS support187   * FIX: htc, android, palm/hp, kindle, ios, generic feature phones & spider device checks188 189## 0.2.0190 - ADD: added isMobile support191 - ADD: added isTablet support192 - ADD: added isComputer support193 - ADD: added isSpider support194 195## 0.1.0196 - The following were changes to user_agents_regex.yaml:197   * expanded support for Symbia & Nokia Devices, 198   * cleaned up some slashies, 199   * added Mobile Safari as the family replacement for iOS devices, 200   * better support for longer HTC device names201   * added feature phones to the device check202   * added generic smartphones to the device check203   * added AvantGo to the ua check204   * tweaked a lot of the nokia checks205   * added kindle support to the device section206   * added a generic catch for android devices.207   * added support for blackberry devices208   * changed the blackberry family to 'blackberry webkit' when it's a webkit browser209