Bug #18219: missing line in example
| From: | rashid@php.net | Date: | Mon, 08 Jul 2002 07:59:36 +0000 |
| Subject: | Bug #18219: missing line in example | ||
| Groups: | php.bugs php.doc | ||
| Request: | Send a blank email to php-bugs+get-13491@lists.php.net to get a copy of this message | ||
From: rashid@php.net
Operating system: any
PHP version: 4CVS-2002-07-08
PHP Bug Type: Documentation problem
Bug description: missing line in example
look at last example at http://www.php.net/ZEND_CHANGES.txt
$backtrace = debug_backtrace();
foreach ($backtrace as $step) {
$class = isset($step['class']) ? $step['class'] . '::' :
'';
printf(
"%s [%s:%s]\n",
$step['function'],
$step['file'],
$step['line']
);
}
$class is set but not used. i think that printf call should be changed
to:
printf(
"%s%s [%s:%s]\n",
$class,
$step['function'],
$step['file'],
$step['line']
);
probably someone forgot to add this part, which is pretty important.
--
Edit bug report at http://bugs.php.net/?id=18219&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18219&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18219&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18219&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18219&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18219&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18219&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18219&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18219&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18219&r=globals