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
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: 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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 06:00:01 2026 UTC