I have oracle 9 release 2 installed on a redhat linux 7.2 server connecting to a remote oracle 7.3.4 server.
oci8 functions connect to oracle, parse and execute the statement but as soon as ocifetch is called it bombs with the message
Warning: OCIFetch: ORA-01002: fetch out of sequence in /var/www/html/testoracle.php on line 15
Then if I try and call and echo OCIResult($stmt,'FIELD') I get inconsistant data, sometimes it letters, other times it was the script name.
I also compiled --with-oracle, using the same ORACLE_HOME, and the calls to ora_fetch work fine.
I checked oracle and apache has sessions connected to oracle that have sent data to and from the linux machine.
any help would be appreciated.