php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27397 debug_backtrace() not showing args passed to function
Submitted: 2004-02-25 14:27 UTC Modified: 2004-04-13 13:27 UTC
Votes:5
Avg. Score:4.0 ± 0.9
Reproduced:5 of 5 (100.0%)
Same Version:4 (80.0%)
Same OS:4 (80.0%)
From: lance at monkeymental dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5CVS-2004-04-08 OS: *
Private report: No CVE-ID: None
 [2004-02-25 14:27 UTC] lance at monkeymental dot com
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-13 13:27 UTC] sniper@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC