From e91341fc2b1427c090fafa375152308344bdc2d9 Mon Sep 17 00:00:00 2001
From: Christopher Jones <sixd@php.net>
Date: Mon, 16 Nov 2009 23:08:26 +0000
Subject: [PATCH] Use trigger_error() in examples for consistency

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@290849 c90b9560-bf6c-de11-be94-00142212c4b1
---
 reference/oci8/functions/oci-error.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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);
 }
 ]]>
     </programlisting>
@@ -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);
 }
 ]]>
     </programlisting>