debug_backtrace() not showing args passed to function
| Bug #27397 | debug_backtrace() not showing args passed to function | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2004-02-25 14:27 UTC | Modified: | 2004-04-13 13:27 UTC |
|
||||||||||
| 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 commits
[2004-04-13 13:27 UTC] sniper@php.net