--TEST-- Prefetch with REF cursor. Test No 4 --SKIPIF-- = 10))) { die("skip expected output only valid when using Oracle 10g or greater database server"); } preg_match('/^([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)/', oci_client_version(), $matches); if (!(isset($matches[0]) && (($matches[1] == 11 && $matches[2] >= 2) || ($matches[1] >= 12) ))) { die("skip test expected to work only with Oracle 11gR2 or greater version of client"); } ?> --FILE-- --EXPECTF-- ------Test 1 - Set Prefetch after PL/SQL fetch ---------- Warning: oci_execute(): ORA-01001: %s ORA-06512: at "SYSTEM.REFCURPKG", line %d ORA-06512: at line %d in %s on line %d Fetch Row from PL/SQL int(0) NULL Fetch Row from PHP array(2) { [0]=> string(1) "0" [1]=> string(5) "test0" } ------Test 2- Overwrite prefetch----------- Fetch Row from PHP array(2) { [0]=> string(1) "0" [1]=> string(5) "test0" } Fetch Row from PL/SQL int(101) string(%d) "test101" Done