#45000 [NEW]: Typo in Exception::getTrace signature
| From: | a at b dot c dot de | Date: | Wed, 14 May 2008 22:03:59 +0000 |
| Subject: | #45000 [NEW]: Typo in Exception::getTrace signature | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-821@lists.php.net to get a copy of this message | ||
From: a at b dot c dot de
Operating system: Irrelevant
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Typo in Exception::getTrace signature
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 bug report at http://bugs.php.net/?id=45000&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45000&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45000&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45000&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45000&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45000&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45000&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45000&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45000&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45000&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45000&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45000&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45000&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45000&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45000&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45000&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45000&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45000&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45000&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45000&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45000&r=mysqlcfg