php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69347 Wrong utf8 processing in fetch methods
Submitted: 2015-04-01 14:03 UTC Modified: 2021-03-31 11:37 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: arth dot inbox+phpnet at gmail dot com Assigned:
Status: Suspended Package: InterBase related
PHP Version: Irrelevant OS: Ubuntu 14.04.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: arth dot inbox+phpnet at gmail dot com
New email:
PHP Version: OS:

 

 [2015-04-01 14:03 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-16 08:48 UTC] arth dot inbox at gmail dot com
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 :)
 [2021-03-31 11:37 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2021-03-31 11:37 UTC] cmb@php.net
The interbase extension is moved to PECL[1] as of PHP 7.4.0, and
is looking for a new maintainer.  Until a new maintainer is found,
I suspend this ticket.

Consider to use the bundled PDO_Firebird extension, or the
php-firebird package[2] instead.

[1] <https://pecl.php.net/package/interbase>
[2] <https://github.com/FirebirdSQL/php-firebird>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC