svn: /phpdoc/bg/trunk/language/predefined/errorexception/ getseverity.xml

[email protected] (Stanislav Yordanov) Fri, 20 May 2016 07:52:58 +0000
Newsgroups php.doc.bg
Message-ID <[email protected]>
stanprog                                 Fri, 20 May 2016 07:52:58 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=339190

Log:
sync with EN

Changed paths:
    U   phpdoc/bg/trunk/language/predefined/errorexception/getseverity.xml

Modified: phpdoc/bg/trunk/language/predefined/errorexception/getseverity.xml
===================================================================
--- phpdoc/bg/trunk/language/predefined/errorexception/getseverity.xml	2016-05-19 22:11:31 UTC (rev 339189)
+++ phpdoc/bg/trunk/language/predefined/errorexception/getseverity.xml	2016-05-20 07:52:58 UTC (rev 339190)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 288721 Maintainer: stanprog Status: ready -->
+<!-- EN-Revision: 339185 Maintainer: stanprog Status: ready -->
 <!-- CREDITS: kouber -->
 <refentry xml:id="errorexception.getseverity" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
@@ -30,7 +30,7 @@
    Връща нивото на строгост на изключението.
   </para>
  </refsect1>
-
+
  <refsect1 role="examples">
   &reftitle.examples;
   <para>
@@ -40,9 +40,10 @@
 <![CDATA[
 <?php
 try {
-    throw new ErrorException("Съобщение на изключението", 0, 75);
+    throw new ErrorException("Exception message", 0, E_USER_ERROR);
 } catch(ErrorException $e) {
     echo "Нивото на строгост на това изключение е: " . $e->getSeverity();
+    var_dump($e->getSeverity() === E_USER_ERROR);
 }
 ?>
 ]]>
@@ -50,14 +51,15 @@
     &example.outputs.similar;
     <screen>
 <![CDATA[
-Нивото на строгост на това изключение е: 75
+Нивото на строгост на това изключение е: 256
+bool(true)
 ]]>
     </screen>
    </example>
   </para>
  </refsect1>
 </refentry>
-
+
 <!-- Keep this comment at the end of the file
 Local variables:
 mode: sgml