ID:               18534
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Informix related
 Operating System: Sun Solaris 8
 PHP Version:      4.2.1
 New Comment:

No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:
------------------------------------------------------------------------

[2002-12-07 01:44:11] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip



------------------------------------------------------------------------

[2002-07-24 05:55:36] [EMAIL PROTECTED]

When working with tranaztions. ifx_close() does not close session.

I have following script:
<?
$db=ifx_connect("db","uid","pwd");

$result=ifx_query("begin work",$db);
$result=ifx_query("insert into m_test1 (i) values('1');", $db);
$result=ifx_query("select * from m_test1;", $db);
while($row=ifx_fetch_row($result)) {
        echo($row['i']);
}
//$result=ifx_query("rollback work;", $db);
echo("rollback");
$result=ifx_query("select * from m_test1;", $db);
while($row=ifx_fetch_row($result)) {
        echo($row['i']);
}
ifx_close($db);

?>


If i dont execute $result=ifx_query("rollback work;", $db); and just
call ifx_close session is not closed and autmatic rollback is not
executed (as it must be) but connection to Informix database stays with
lock on this row.

Usualy you must have rollback or commit; But to avoid problems with bad
code or other coding probs after calling ifx_close() session must be
rolled back and closed.


Martins Junkers


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=18534&edit=1

Reply via email to