PostgreSQL and invalid link resource errors

wxdqz

New Member
I am getting mad with this. I have some code that do various pg_connect() and other pg_xxx() calls. Every 2nd pg_connect() gets an invalid link resource. Always. My code worked perfectly on php 4.0.0. On 4.0.1pl2, the "is not a valid PostgreSQL link resource" error message appears on every 2nd consecutive use of a link resource generated by pg_connect(). I was getting mad then, but php 4.0.2 goes out and this behaviour simply disappear when I install it. Then, I installed the 4.0.3pl1 version and... voila! There is all the "is not a valid PostgreSQL link resource" messages again, with the same code that runs smoothly in php 4.0.2.
On bugs.php.net I found at least 7 reports on this. Two of them are now closed, due to lack of user feedback. One of them are open since July (on 4.0.1pl1).
Please, did someone know something more about this? Some workaround to use the 4.0.3pl1 php version?
Thanks
 
Back
Top