From: [EMAIL PROTECTED] 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 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
