Bug #18161: backtrace and zend engine 2 (alpha 2)
| From: | ol at globalis-ms dot com | Date: | Thu, 04 Jul 2002 11:12:26 +0000 |
| Subject: | Bug #18161: backtrace and zend engine 2 (alpha 2) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-13100@lists.php.net to get a copy of this message | ||
From: ol@globalis-ms.com
Operating system: linux - i386
PHP version: 4CVS-2002-07-04
PHP Bug Type: Zend Engine 2 problem
Bug description: backtrace and zend engine 2 (alpha 2)
Hi,
I've tried to test the backtrace function in zend engine 2 alpha 2. And
i'm not able to get any usable output.
Is it a known bug (no KNOWN_BUG file, in archive), or it's just not the
right way to use it ?
Example 1 (from the Change log doc)
Output -> <empty>
<?php
$backtrace = debug_backtrace();
foreach ($backtrace as $step) {
$class = isset($step['class']) ? $step['class'] . '::' :
'';
printf(
"%s [%s:%s]\n",
$step['function'],
$step['file'],
$step['line']
);
}
?>
Example 2 (from my own)
Output -> <empty Array>
<?php
function foo(){
echo "function --> foo\n";
}
$backtrace = debug_backtrace();
foo();
print_r($backtrace);
?>
Thanks,
My conf:
./configure --without-apache --without-pear
on a linuxbox - slackware 8.1 / i386
--
Ol
--
Edit bug report at http://bugs.php.net/?id=18161&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18161&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18161&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18161&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18161&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18161&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18161&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18161&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18161&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18161&r=globals