Bug #69347 [NEW]: Wrong utf8 processing in fetch methods
| From: | arth dot inbox+phpnet at gmail dot com | Date: | Wed, 01 Apr 2015 14:03:39 +0000 |
| Subject: | Bug #69347 [NEW]: Wrong utf8 processing in fetch methods | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-191767@lists.php.net to get a copy of this message | ||
From: arth dot inbox+phpnet at gmail dot com
Operating system: Ubuntu 14.04.1
PHP version: Irrelevant
Package: InterBase related
Bug Type: Bug
Bug description:Wrong utf8 processing in fetch methods
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 bug report at https://bugs.php.net/bug.php?id=69347&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69347&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69347&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69347&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69347&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69347&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69347&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69347&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69347&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69347&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69347&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69347&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69347&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69347&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69347&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69347&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69347&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69347&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69347&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69347&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69347&r=mysqlcfg