Bug #80925 [NEW]: PHP 5.6
| From: | r dot remya1 at gmail dot com | Date: | Thu, 01 Apr 2021 04:29:25 +0000 |
| Subject: | Bug #80925 [NEW]: PHP 5.6 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-233115@lists.php.net to get a copy of this message | ||
From: r dot remya1 at gmail dot com
Operating system: RHEL
PHP version: Irrelevant
Package: *Unicode Issues
Bug Type: Bug
Bug description:PHP 5.6
Description:
------------
Have application running in 2 servers with different php versions, both
connecting to same databse(sybase).
On premise php 5.4
AWS - php 5.6
Have issues in json_encode german characters in aws. I tried
1. echo json_last_error_msg(); -- gave error Malformed UTF-8 characters,
possibly incorrectly encoded.But the same code have encoding issues in
on premise server
2.Charset UTF-8 is specified in sybase connection string and
content="text/html; charset=UTF-8 is also added.
Am getting records from sybase procedure succesfully and after json
encode returns null. There are no issues with on prem connecting to same
sybase database
Test script:
---------------
sybase procedure result
$result = array('ID' => 1420,'Channel' => Retail -
Fl�chenm�rkte)
print_r(var_dump(json_encode($result))); // returns null in aws
--
Edit bug report at https://bugs.php.net/bug.php?id=80925&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80925&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80925&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80925&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80925&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80925&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80925&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80925&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80925&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80925&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80925&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80925&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80925&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80925&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80925&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80925&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80925&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80925&r=mysqlcfg