From:             lance at monkeymental dot com
Operating system: Linux Kernel 2.4.22
PHP version:      5.0.0b4 (beta4)
PHP Bug Type:     Unknown/Other Function
Bug description:  debug_backtrace() not showing args pased to function

Description:
------------
The debug_backtrace() call doesn't show what arguments where passed to a
function in PHP 5.0b4 bug does with PHP 4.3.4 using the same source file.

Reproduce code:
---------------
<?

function test($a, $b)

{

        print_r(debug_backtrace());

        echo "$a, $b\n";

}





test("Hello", "World");

?>



Expected result:
----------------
PHP 4.3.4 (cli) (built: Jan  5 2004 17:27:17)

Copyright (c) 1997-2003 The PHP Group

Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

Array

(

    [0] => Array

        (

            [file] => /root/scratch/xml/foo.php

            [line] => 9

            [function] => test

            [args] => Array

                (

                    [0] => Hello

                    [1] => World

                )



        )



)

Hello, World



Actual result:
--------------
PHP 5.0.0b4 (cli) (built: Feb 22 2004 21:45:34)

Copyright (c) 1997-2004 The PHP Group

Zend Engine v2.0.0-dev, Copyright (c) 1998-2004 Zend Technologies

Array

(

    [0] => Array

        (

            [file] => /root/scratch/xml/foo.php

            [line] => 9

            [function] => test

        )



)

Hello, World



-- 
Edit bug report at http://bugs.php.net/?id=27397&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27397&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27397&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27397&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27397&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27397&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27397&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27397&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27397&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27397&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27397&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27397&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27397&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27397&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27397&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27397&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27397&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27397&r=float

Reply via email to