php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58673 Inserting UTF-8 data adds an extra NULL byte
Submitted: 2009-05-15 02:28 UTC Modified: 2009-05-16 04:11 UTC
From: grant dot croker at ingres dot com Assigned: grantc@php.net (profile)
Status: Closed Package: ingres (PECL)
PHP Version: 5.2.9 OS: Linux (Ubuntu)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: grant dot croker at ingres dot com
New email:
PHP Version: OS:

 

 [2009-05-15 02:28 UTC] grant dot croker at ingres dot com
Description:
------------
Inserting UTF-8 values into Ingres result in an extra NULL byte in the target column. For example "Asturias" becomes "Asturias\0"

Reproduce code:
---------------
see http://ingres.pastebin.com/f3f58700d

Expected result:
----------------
Get current list of airports
Barcelona - El Prat De Llobregat
Madrid - Barajas
Valladolid - Valladolid
Insert new airport:
Verify new airport
4173747572696173:Asturias - 4f6c766965646f:Olviedo


Actual result:
--------------
Get current list of airports
Barcelona - El Prat De Llobregat
Madrid - Barajas
Valladolid - Valladolid
Insert new airport:
Verify new airport
417374757269617300:Asturias - 4f6c766965646f00:Olviedo


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-16 04:11 UTC] grant dot croker at ingres dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 16:01:29 2024 UTC