|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-05 16:10 UTC] danny@php.net
[2000-08-07 16:48 UTC] danny@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 30 22:00:01 2025 UTC |
It seems that when ifx_connect is called twice in the same script using the same connection parameters it returns the same connection resource id even when the connection was closed before calling ifx_connect for the second time. Try the following example to see the problem. Function Doit($go) { global $informix_server,$database_name,$database,$user,$password,$some_table; PutEnv("INFORMIXSERVER=$informix_server"); if(($connection=ifx_connect($database,$user,$password))) { if(($result=ifx_query("SELECT * FROM $some_table",$connection))) ifx_free_result($result); else echo "Go $go Query error: ".ifx_errormsg(),"\n"; ifx_Close($connection); } else echo "Connection error: ".ifx_errormsg(),"\n"; } $informix_server="demo_on"; $database_name="my_database"; $user="informix"; $password="informixpassword"; $some_table="my_table"; $database="$database_name@$informix_server"; DoIt(1); DoIt(2);