php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25483 Wrong variable name descrpid instead of i_descrpid on line #926 in ifx.ec
Submitted: 2003-09-11 03:43 UTC Modified: 2003-09-11 19:50 UTC
From: denisov at kubsu dot ru Assigned:
Status: Closed Package: Informix related
PHP Version: 4.3.3 OS: Solaris 8 sparc
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: denisov at kubsu dot ru
New email:
PHP Version: OS:

 

 [2003-09-11 03:43 UTC] denisov at kubsu dot ru
Description:
------------
Wrong variable name descrpid instead of i_descrpid on line #926 in ifx.ec

Reproduce code:
---------------
# diff ifx.ec ifx.ec.orig
926c926
<                                               EXEC SQL SET DESCRIPTOR :i_descrpid VALUE :i
---
>                                               EXEC SQL SET DESCRIPTOR :descrpid VALUE :i


Actual result:
--------------
When I try to execute SQL update statement with char parameters, the
following error occured:


Informix Error -469
This descriptor does not exist. 

PHP Code:

$QUERY = "INSERT INTO tab (col1, col2) VALUES ( ?, ? )";
$blobidarray[] = ifx_create_char($username);
$blobidarray[] = ifx_create_char($password);
$res_id = ifx_query($QUERY, $conn_id, $blobidarray);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-11 19:50 UTC] sniper@php.net
Patch applied, thanks!

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC