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:
 [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-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 16 07:02:02 2014 UTC