php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2230 latest CVS breaks Informix driver "connection id"
Submitted: 1999-09-03 06:00 UTC Modified: 1999-09-03 15:58 UTC
From: danny dot heijl at cevi dot be Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (03/09/1999) OS: RH 5.2 Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: danny dot heijl at cevi dot be
New email:
PHP Version: OS:

 

 [1999-09-03 06:00 UTC] danny dot heijl at cevi dot be
The latest CVS broke something in the resource lists.

Informix driver no longer works, after every query I get 
the same error message :

<b>Warning</b>:  ifx_query : 1 (type -1) is not a Informix
ink index in <b>somescript.php3</b> on line <b>nnn</b><br>



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-03 09:00 UTC] danny at cvs dot php dot net
If it helps : 

Connection id's returned by ifx_pconnect() are all right.

Connection id's returned by ifx_connect() are lost.

My ifx.ec ifx_do_connect() code is a copy of the code in 
mysql.c (except that it connects to informix of course). 

Danny.
--
 [1999-09-03 09:31 UTC] danny at cvs dot php dot net
... is a copy of mysql.c ...

except that persistent links in ixf.ec are type IS_LONG
and other links are type IS_RESOURCE, while both are
IS_RESOURCE in mysql.c.

I must have missed that IS_LONG when converting to PHP4.

But it is the type IS_RESOURCE that stopped working. 

Danny.
---
 [1999-09-03 15:58 UTC] danny at cvs dot php dot net
Backed out IS_RESOURCE for informix connection id's, they are now type 
IS_LONG like they are in PHP3 and everything works fine now.

I will go back to IS_RESOURCE when I get a clear picture of why it
no longer works as it was until now.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 19:01:35 2025 UTC