svn: /phpdoc/en/trunk/reference/oci8/functions/ oci-error.xml

From: Date: Mon, 16 Nov 2009 23:08:26 +0000
Subject: svn: /phpdoc/en/trunk/reference/oci8/functions/ oci-error.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5406@lists.php.net to get a copy of this message
sixd Mon, 16 Nov 2009 23:08:26 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290849 Log: Use trigger_error() in examples for consistency Changed paths: U phpdoc/en/trunk/reference/oci8/functions/oci-error.xml Modified: phpdoc/en/trunk/reference/oci8/functions/oci-error.xml =================================================================== --- phpdoc/en/trunk/reference/oci8/functions/oci-error.xml 2009-11-16 23:04:13 UTC (rev 290848) +++ phpdoc/en/trunk/reference/oci8/functions/oci-error.xml 2009-11-16 23:08:26 UTC (rev 290849) @@ -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 @@ $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>

« previous php.doc.cvs (#5406) next »