php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5952 Informix ifx_fetch_row corrupts columns of type INT8
Submitted: 2000-08-04 08:06 UTC Modified: 2000-08-05 15:29 UTC
From: mlemos at acm dot org Assigned: danny (profile)
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Latest CVS (04/08/2000) OS: Linux RH 6
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mlemos at acm dot org
New email:
PHP Version: OS:

 

 [2000-08-04 08:06 UTC] mlemos at acm dot org
(where is the Informix related in the bug type entry?)

The problem seems to be only with SELECTs on INT8 fields.

Execute these statements in dbaccess in any existing database.

CREATE TABLE my_table (id INT8 DEFAULT 0 NOT NULL)
INSERT INTO my_table (id) (1234)

In PHP execute this query

SELECT id FROM my_table

When you use ifx_fetch_row, it will return the result row array with
"id"=>"1234 ????????[? random garbage".

I got this problem with Informix Dynamic Server 2000 Version 9.20.UC1
either using PHP 3 or PHP 4.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-04 23:06 UTC] danny@php.net
I'll try to reproduce (and hopefully fix) it over the weekend.

Danny
---
 [2000-08-05 15:29 UTC] danny@php.net
Fixed in CVS for PHP3 and PHP4.

Danny
---
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 06:01:32 2024 UTC