ID: 27397
Updated by: [EMAIL PROTECTED]
Reported By: lance at monkeymental dot com
-Status: Open
+Status: Verified
Bug Type: Zend Engine 2 problem
-Operating System: Linux Kernel 2.4.22
+Operating System: *
-PHP Version: 5.0.0b4 (beta4)
+PHP Version: 5CVS-2004-02-25
Previous Comments:
------------------------------------------------------------------------
[2004-02-25 14:27:14] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27397&edit=1