Bug #24405 [Com]: debug_backtrace - missing info

From: Date: Sun, 31 Jan 2021 13:22:13 +0000
Subject: Bug #24405 [Com]: debug_backtrace - missing info
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231852@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=24405&edit=1 ID: 24405 Comment by: fgm at osinet dot fr Reported by: cagret at yahoo dot com Summary: debug_backtrace - missing info Status: No Feedback Type: Bug Package: Scripting Engine problem Operating System: Windows PHP Version: 4.3.1 Block user comment: N Private report: N New Comment: Still happens on PHP 7.4.14 Previous Comments: ------------------------------------------------------------------------ [2006-09-05 14:58:39] max_m at eyelinkmedia dot com I found the same problem. Here is example of script : -------------------------- $str = '<user id="1"> <login><![CDATA[test]]></login> <gender>M</gender> </user>'; function tag_open($parser, $name, $attr) { } function tag_close($parser, $name) { if ($name == 'user' ) print_r(debug_backtrace()); } $parser = xml_parser_create(); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); xml_set_element_handler($parser, "tag_open", "tag_close"); xml_parse($parser, $str); -------------------------------- and this script output : ------ X-Powered-By: PHP/4.4.5-dev Content-type: text/html Array ( [0] => Array ( [function] => tag_close [args] => Array ( [0] => Resource id #1 [1] => user ) ) [1] => Array ( [file] => C:\usr\php4\a.php [line] => 19 [function] => xml_parse [args] => Array ( [0] => Resource id #1 [1] => <user id="1"> <login><![CDATA[test]]></login> <gender>M</gender> </user> ) ) ) ---------- So first record of this dump haven't keys 'file' and 'line'. Checked with this release: http://snaps.php.net/win32/php4-win32-STABLE-200609040430.zip ------------------------------------------------------------------------ [2003-07-07 02:41:05] sniper@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2003-06-30 12:08:27] sniper@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2003-06-30 07:39:08] cagret at yahoo dot com Description: ------------ when using call_user_func_array() 'class' 'file' and 'line' key are missing in some calls in debug_backtrace() when using overload() 'class' key is missing in some calls in debug_backtrace() -- cagrET ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=24405&edit=1

« previous php.bugs (#231852) next »