Bug #69347 [Com]: Wrong utf8 processing in fetch methods
| From: | arth dot inbox at gmail dot com | Date: | Thu, 16 Apr 2015 08:48:36 +0000 |
| Subject: | Bug #69347 [Com]: Wrong utf8 processing in fetch methods | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-192125@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69347&edit=1
ID: 69347
Comment by: arth dot inbox at gmail dot com
Reported by: arth dot inbox+phpnet at gmail dot com
Summary: Wrong utf8 processing in fetch methods
Status: Open
Type: Bug
Package: InterBase related
Operating System: Ubuntu 14.04.1
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I think this bug related to other package (one of dependencies of interbase), but I can't find
which.
It's so hard to read Macro-C code :)
Previous Comments:
------------------------------------------------------------------------
[2015-04-01 14:03:39] arth dot inbox+phpnet at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.ibase-fetch-assoc
---
Utf8 strings incorrectly processed in ibase_fetch_* functions.
See
Test script.
Test script:
---------------
// connect
$con = ibase_connect($database, $user, $pass);
$q = ibase_query("SELECT * FROM Users WHERE name LIKE 'Ðва%'"); // ok
$user = ibase_fetch_assoc($this->q);
// PHP Warning: ibase_fetch_assoc(): Malformed string
// But if we have even number of russian characters(like 'Ðван%'), all ok
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69347&edit=1