php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #45000 Typo in Exception::getTrace signature
Submitted: 2008-05-14 22:03 UTC Modified: 2008-05-15 11:15 UTC
From: a at b dot c dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: a at b dot c dot de
New email:
PHP Version: OS:

 

 [2008-05-14 22:03 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-15 11:15 UTC] felipe@php.net
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.


 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of felipe
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=a2dc8afade06f6ece883df08f018e2557704e143
Log: Fixed bug #45000 (Typo in Exception::getTrace signature)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 08:00:01 2026 UTC