svn: /phpdoc/en/trunk/language/predefined/exception/ getfile.xml getline.xml
| From: | Jakub Vrana | Date: | Thu, 10 Feb 2011 15:03:42 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/predefined/exception/ getfile.xml getline.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7741@lists.php.net to get a copy of this message | ||
vrana Thu, 10 Feb 2011 15:03:42 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=308198
Log:
Exception informs about the point of creation not throwing (doc bug #53882)
Bug: http://bugs.php.net/53882 (Open) Exception::getLine
method returns line where Exception created not Thrown
Changed paths:
U phpdoc/en/trunk/language/predefined/exception/getfile.xml
U phpdoc/en/trunk/language/predefined/exception/getline.xml
Modified: phpdoc/en/trunk/language/predefined/exception/getfile.xml
===================================================================
--- phpdoc/en/trunk/language/predefined/exception/getfile.xml 2011-02-10 14:56:49 UTC (rev 308197)
+++ phpdoc/en/trunk/language/predefined/exception/getfile.xml 2011-02-10 15:03:42 UTC (rev 308198)
@@ -14,7 +14,7 @@
<void />
</methodsynopsis>
<para>
- Get the name of the file the exception was thrown from.
+ Get the name of the file the exception was created.
</para>
</refsect1>
@@ -26,7 +26,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns the filename in which the exception was thrown.
+ Returns the filename in which the exception was created.
</para>
</refsect1>
Modified: phpdoc/en/trunk/language/predefined/exception/getline.xml
===================================================================
--- phpdoc/en/trunk/language/predefined/exception/getline.xml 2011-02-10 14:56:49 UTC (rev 308197)
+++ phpdoc/en/trunk/language/predefined/exception/getline.xml 2011-02-10 15:03:42 UTC (rev 308198)
@@ -14,7 +14,7 @@
<void />
</methodsynopsis>
<para>
- Returns line number where the exception was thrown.
+ Get line number where the exception was created.
</para>
</refsect1>
@@ -26,7 +26,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns the line number where the exception was thrown.
+ Returns the line number where the exception was created.
</para>
</refsect1>
@@ -41,7 +41,7 @@
try {
throw new Exception("Some error message");
} catch(Exception $e) {
- echo "The exception was thrown on line: " . $e->getLine();
+ echo "The exception was created on line: " . $e->getLine();
}
?>
]]>
@@ -49,7 +49,7 @@
&example.outputs.similar;
<screen>
<![CDATA[
-The exception was thrown on line: 3
+The exception was created on line: 3
]]>
</screen>
</example>