I get that error too.
However, I have moved to a situation now where either the connection works or it times out.
Try using OCIPlogon
And place the "DESCRIPTION=" as the third parameter to OCIPlogon.
ex : $cnct = OCIPLogon("user","pass","DESCRIPTION=(ADDRESS=(PROTOCOL...)))");
Or you can try to put the service name in the third parameter, in that case you would have to put the DESCRIPTION= string in the tnsnames.ora. However, I have yet to get that to work at all.
I am not sure if this will make you better off, but at least you might start getting connections. Sorry I couldn't help more but I am still haveing problems myself with OCI.
Regards,
Shep