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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 07:01:27 2025 UTC