No function as oci_last_error. It's oci_error.
Add getLastError()
Use getLastError() everywhere.