I'm finding that oci_error always returns false. When I did a test script:
Expand|Select|Wrap|Line Numbers
- $db = ocilogon('test', 'test', '//test:123/test.world');
- $stmntID = oci_parse($db, "SELECT dec2hex(14 FROM dual");
- oci_set_prefetch($stmntID, 1000);
- $result = oci_execute($stmntID,OCI_COMMIT_ON_SUCCESS);
- $data = oci_fetch_assoc($stmntID);
- var_dump(oci_error($db));
Reason I needed is I need to display a message to the user if a certain ORA-XXXXX error occurs. I can't do that because oci_error always returns false. ALSO oci_execute returns false.
This is not right. is it?
My only solution at this point is to capture any and all PHP warnings and see which one starts with ORA-XXX.
If someone can "edumicate" me I'd appreciate it.
Thanks,
Dan