#45000 [Opn->Csd]: Typo in Exception::getTrace signature
| From: | felipe@php.net | Date: | Thu, 15 May 2008 11:15:15 +0000 |
| Subject: | #45000 [Opn->Csd]: Typo in Exception::getTrace signature | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-822@lists.php.net to get a copy of this message | ||
ID: 45000
Updated by: felipe@php.net
Reported By: a at b dot c dot de
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2008-05-14 22:03:59] a at b dot c dot de
Description:
------------
The documentation for the Exception class (
http://www.php.net/manual/en/class.exception.php
http://www.php.net/manual/en/exception.gettrace.php
and
http://www.php.net/manual/en/class.errorexception.php
) characterise
the getTrace() method as "final public string" instead of "final public
array". "final public string" is what getTraceAsString() returns.
Reproduce code:
---------------
$foo = new Exception();
$trace = $foo->getTrace();
echo gettype($trace);
Expected result:
----------------
// Assuming the documentation is correct
string
Actual result:
--------------
// The correct output, which contradicts the documentation
array
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45000&edit=1