diff --git a/reference/oci8/functions/oci-error.xml b/reference/oci8/functions/oci-error.xml index b61d37bea6..28ff32003c 100644 --- a/reference/oci8/functions/oci-error.xml +++ b/reference/oci8/functions/oci-error.xml @@ -132,7 +132,7 @@ $conn = oci_connect("hr", "welcome", "localhost/XE"); if (!$conn) { $e = oci_error(); // For oci_connect errors do not pass a handle - echo htmlentities($e['message']); + trigger_error(htmlentities($e['message']), E_USER_ERROR); } ]]> @@ -146,7 +146,7 @@ if (!$conn) { $stid = oci_parse($conn, "select ' from dual"); // note mismatched quote if (!$stid) { $e = oci_error($conn); // For oci_parse errors pass the connection handle - echo htmlentities($e['message']); + trigger_error(htmlentities($e['message']), E_USER_ERROR); } ]]>