Mantis - Quercus
Viewing Issue Advanced Details
1154 minor always 05-26-06 19:32 09-05-08 14:07
koreth  
ferg  
normal  
closed 3.0.20  
fixed  
none    
none 3.2.1  
0001154: debug_backtrace() doesn't include function arguments
PHP:

<?php
function testfunc($x) {
        var_dump(debug_backtrace());
}

testfunc("test");
?>

Zend PHP outputs the following (reformatted for easier reading):

array(1) {
  [0]=> array(4) {
    ["file"]=> string(59) "/Users/sgrimm/resin/resin/webapps/test/test.php"
    ["line"]=> int(6)
    ["function"]=> string(8) "testfunc"
    ["args"]=> array(1) {
      [0]=> &string(4) "test"
    }
  }
}

Quercus outputs the same thing but the "args" array is empty.

array(1) {
  [0]=> array(4) {
    ["file"]=> string(47) "/Users/sgrimm/resin/resin/webapps/test/test.php"
    ["line"]=> int(6)
    ["function"]=> string(8) "testfunc"
    ["args"]=> array(0) {
    }
  }
}
060526 snapshot

Notes
(0002437)
mo   
11-02-07 17:15   
Updated/Added:

php/180i.qa
php/180j.qa
php/180k.qa
php/180l.qa
php/180m.qa
php/180n.qa
php/180o.qa
php/180p.qa

Fixed up output to match PHP in most cases. The interpreted
version of quercus will now report argument values. The
compiled version does not report variable values from a
compiled call frame.
(0002485)
nam   
11-13-07 15:52   
change reverted to get mediawiki running, args are again not reported in debug_backtrace()

php/180q
(0003395)
ferg   
09-05-08 14:07   
php/180t