|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-10 04:00 UTC] danny@php.net
[2000-08-11 22:21 UTC] danny@php.net
[2000-08-12 00:52 UTC] danny@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 16:00:02 2025 UTC |
Since Informix PHP API do not close non-persistent connections in ifx_Close but rather at the end of script, Informix client functions fail on a second connection attempt when shared memory connections are used with error -27000 Cannot support multiple connections over shared memory . Try this script to see the problem. <? Function Doit($database_name,$some_table) { global $informix_server,$user,$password; PutEnv("INFORMIXSERVER=$informix_server"); if(($connection=ifx_connect($database_name."@".$informix_server,$user,$password))) { if(($result=ifx_query("SELECT * FROM $some_table",$connection))) ifx_free_result($result); else echo "Database: $database_name Query error: ".ifx_errormsg(),"\n"; ifx_Close($connection); } else echo "Connection error: ".ifx_errormsg(),"\n"; } $informix_server="demo_on"; $user="informix"; $password="password"; DoIt("sysmaster","informix.arc_ae_view"); DoIt("sysutils","informix.bar_action"); ?>