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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
39 + 9 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 20:01:32 2024 UTC