mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
efd6f4780a
commit
e91341fc2b
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue