Use trigger_error() in examples for consistency

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@290849 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christopher Jones 2009-11-16 23:08:26 +00:00
parent efd6f4780a
commit e91341fc2b

View file

@ -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>