php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58768 ingres_field_name() does not work properly when ingres.array_index_start is 0
Submitted: 2009-07-20 10:58 UTC Modified: 2009-07-22 08:44 UTC
From: grant dot croker at ingres dot com Assigned:
Status: Closed Package: ingres (PECL)
PHP Version: 5.2.10 OS: Irrelevant
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-07-20 10:58 UTC] grant dot croker at ingres dot com
Description:
------------
When fetching the first column name with array_index_start 0 the error:
Warning: ingres_field_name(): php_ii_field_name() called with wrong index (-1) in /home/grant/public_html/php/pecl/2.0/ingres/ingres_field_name.php on line 23

Reproduce code:
---------------
<?php

  ini_set('display_errors', 1);
  ini_set('error_reporting', E_ALL);
  ini_set('ingres.array_index_start',0);
  $ingres_database = "iidbdb";
  $query = "select * from iitables";
  $link = ingres_connect($ingres_database);
  $result_set = ingres_query($link, $query);
  echo ingres_field_name($result_set,0);
?>

Expected result:
----------------
table_name

Actual result:
--------------
Warning: ingres_field_name(): php_ii_field_name() called with wrong index (-1) in /home/grant/public_html/php/pecl/2.0/ingres/ingres_field_name.php on line 23

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-22 08:44 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