Bug #68021 [NEW]: get_browser() browser_name_regex returns non-utf-8 characters

From: Date: Mon, 15 Sep 2014 21:54:09 +0000
Subject: Bug #68021 [NEW]: get_browser() browser_name_regex returns non-utf-8 characters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187541@lists.php.net to get a copy of this message
From: justin at commando dot io Operating system: CentOS 6.5 PHP version: 5.4.32 Package: Unicode Engine related Bug Type: Bug Bug description:get_browser() browser_name_regex returns non-utf-8 characters Description: ------------ Calling get_browser() with a user-agent of: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 Returns non-utf8 characters in the browser_name_regex field. See: stdClass Object ( [browser_name_regex] => �^mozilla/5\.0 \(.*mac os x 10_9.*\) applewebkit/.* \(khtml, like gecko\).*chrome/35\..*safari/.*$� This breaks json_decode() trying to store it. Expected result: ---------------- Never return non-utf8 characters. This breaks json_decode(); -- Edit bug report at https://bugs.php.net/bug.php?id=68021&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68021&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68021&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68021&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68021&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68021&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68021&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68021&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68021&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68021&r=support Expected behavior: https://bugs.php.net/fix.php?id=68021&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68021&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68021&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68021&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68021&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68021&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68021&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68021&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68021&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68021&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68021&r=mysqlcfg

« previous php.bugs (#187541) next »